[INFO] fetching crate rusty_quickjs_sys 0.0.1...
[INFO] testing rusty_quickjs_sys-0.0.1 against 1.100.0-beta.1 for beta-1.100-2
[INFO] extracting crate rusty_quickjs_sys 0.0.1 into /workspace/builds/worker-2-tc2/source
[INFO] started tweaking crates.io crate rusty_quickjs_sys 0.0.1
[INFO] finished tweaking crates.io crate rusty_quickjs_sys 0.0.1
[INFO] tweaked toml for crates.io crate rusty_quickjs_sys 0.0.1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate rusty_quickjs_sys 0.0.1 on toolchain 1.100.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 48 packages to highest compatible versions
[INFO] [stderr]       Adding bindgen v0.69.5 (available: v0.73.2)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae
[INFO] running `Command { std: "docker" "start" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.107
[INFO] [stderr]    Compiling glob v0.3.4
[INFO] [stderr]    Compiling quote v1.0.47
[INFO] [stderr]    Compiling rustix v0.38.44
[INFO] [stderr]    Compiling prettyplease v0.2.37
[INFO] [stderr]    Compiling memchr v2.8.3
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling linux-raw-sys v0.4.15
[INFO] [stderr]    Compiling regex-syntax v0.8.11
[INFO] [stderr]    Compiling cfg-if v1.0.5
[INFO] [stderr]    Compiling bitflags v2.13.2
[INFO] [stderr]    Compiling bindgen v0.69.5
[INFO] [stderr]    Compiling home v0.5.12
[INFO] [stderr]    Compiling libc v0.2.190
[INFO] [stderr]    Compiling itertools v0.12.1
[INFO] [stderr]    Compiling rustc-hash v1.1.0
[INFO] [stderr]    Compiling libloading v0.8.9
[INFO] [stderr]    Compiling log v0.4.34
[INFO] [stderr]    Compiling lazycell v1.3.0
[INFO] [stderr]    Compiling lazy_static v1.5.1
[INFO] [stderr]    Compiling clang-sys v1.9.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling syn v2.0.119
[INFO] [stderr]    Compiling regex-automata v0.4.18
[INFO] [stderr]    Compiling cexpr v0.6.0
[INFO] [stderr]    Compiling which v4.4.2
[INFO] [stderr]    Compiling regex v1.13.1
[INFO] [stderr]    Compiling rusty_quickjs_sys v0.0.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `configs`
[INFO] [stdout]    --> build.rs:155:12
[INFO] [stdout]     |
[INFO] [stdout] 155 | fn bindgen(configs: &Configs) {
[INFO] [stdout]     |            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_configs`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `JS_NAN`
[INFO] [stdout]   --> src/lib.rs:75:14
[INFO] [stdout]    |
[INFO] [stdout] 75 | macro_rules! JS_NAN {
[INFO] [stdout]    |              ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37036
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...:: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set_...
[INFO] [stdout]   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { u32::cast_signed (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37224
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val ...
[INFO] [stdout]   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = i32::cast_unsigned (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37614
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_uni...
[INFO] [stdout]   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { i32::cast_unsigned (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `malloc` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:161605
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { p...
[INFO] [stdout]   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "malloc")]`, or `#[link_name = "malloc"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout]   = note: `#[warn(suspicious_runtime_symbol_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `realloc` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:161872
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*mut c_void, usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*mut c_void, u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "realloc")]`, or `#[link_name = "realloc"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s
[INFO] running `Command { std: "docker" "inspect" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] warning: unused variable: `configs`
[INFO] [stdout]    --> build.rs:155:12
[INFO] [stdout]     |
[INFO] [stdout] 155 | fn bindgen(configs: &Configs) {
[INFO] [stdout]     |            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_configs`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `JS_NAN`
[INFO] [stdout]   --> src/lib.rs:75:14
[INFO] [stdout]    |
[INFO] [stdout] 75 | macro_rules! JS_NAN {
[INFO] [stdout]    |              ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37036
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...:: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set_...
[INFO] [stdout]   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { u32::cast_signed (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37224
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val ...
[INFO] [stdout]   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = i32::cast_unsigned (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37614
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_uni...
[INFO] [stdout]   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { i32::cast_unsigned (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `malloc` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:161605
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { p...
[INFO] [stdout]   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "malloc")]`, or `#[link_name = "malloc"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout]   = note: `#[warn(suspicious_runtime_symbol_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling rusty_quickjs_sys v0.0.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: suspicious definition of the runtime `realloc` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:161872
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*mut c_void, usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*mut c_void, u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "realloc")]`, or `#[link_name = "realloc"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `JS_NAN`
[INFO] [stdout]   --> src/lib.rs:75:14
[INFO] [stdout]    |
[INFO] [stdout] 75 | macro_rules! JS_NAN {
[INFO] [stdout]    |              ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37036
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...:: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set_...
[INFO] [stdout]   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { u32::cast_signed (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37224
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val ...
[INFO] [stdout]   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = i32::cast_unsigned (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary transmute
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37614
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_uni...
[INFO] [stdout]   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] help: replace this with
[INFO] [stdout]   |
[INFO] [stdout] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { i32::cast_unsigned (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `malloc` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:161605
[INFO] [stdout]   |
[INFO] [stdout] 3 | ...; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { p...
[INFO] [stdout]   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "malloc")]`, or `#[link_name = "malloc"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout]   = note: `#[warn(suspicious_runtime_symbol_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: suspicious definition of the runtime `realloc` symbol used by the standard library
[INFO] [stdout]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:161872
[INFO] [stdout]   |
[INFO] [stdout] 3 | ... { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } ...
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: expected `unsafe extern "C" fn(*mut c_void, usize) -> *mut c_void` (for the current target)
[INFO] [stdout]           found    `unsafe extern "C" fn(*mut c_void, u64) -> *mut c_void`
[INFO] [stdout]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "realloc")]`, or `#[link_name = "realloc"]`
[INFO] [stdout]   = help: allow this lint if the signature is compatible
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.10s
[INFO] running `Command { std: "docker" "inspect" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: unused variable: `configs`
[INFO] [stderr]    --> build.rs:155:12
[INFO] [stderr]     |
[INFO] [stderr] 155 | fn bindgen(configs: &Configs) {
[INFO] [stderr]     |            ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_configs`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `rusty_quickjs_sys` (build script) generated 1 warning
[INFO] [stderr] warning: unused macro definition: `JS_NAN`
[INFO] [stderr]   --> src/lib.rs:75:14
[INFO] [stderr]    |
[INFO] [stderr] 75 | macro_rules! JS_NAN {
[INFO] [stderr]    |              ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary transmute
[INFO] [stderr]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37036
[INFO] [stderr]   |
[INFO] [stderr] 3 | ...:: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set_...
[INFO] [stderr]   |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unnecessary_transmutes)]` on by default
[INFO] [stderr] help: replace this with
[INFO] [stderr]   |
[INFO] [stderr] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stderr] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { u32::cast_signed (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stderr]   |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary transmute
[INFO] [stderr]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37224
[INFO] [stderr]   |
[INFO] [stderr] 3 | ...: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val ...
[INFO] [stderr]   |                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: replace this with
[INFO] [stderr]   |
[INFO] [stderr] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stderr] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = i32::cast_unsigned (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stderr]   |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary transmute
[INFO] [stderr]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:37614
[INFO] [stderr]   |
[INFO] [stderr] 3 | ...0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_uni...
[INFO] [stderr]   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: replace this with
[INFO] [stderr]   |
[INFO] [stderr] 3 - # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { :: std :: mem :: transmute (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stderr] 3 + # [repr (C)] # [derive (Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd)] pub struct __BindgenBitfieldUnit < Storage > { storage : Storage , } impl < Storage > __BindgenBitfieldUnit < Storage > { # [inline] pub const fn new (storage : Storage) -> Self { Self { storage } } } impl < Storage > __BindgenBitfieldUnit < Storage > 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) ; } } } # [derive (PartialEq , Copy , Clone , Hash , Debug , Default)] # [repr (C)] pub struct __BindgenComplex < T > { pub re : T , pub im : T } pub const _STDIO_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __GLIBC_USE_ISOC2Y : u32 = 0 ; pub const __GLIBC_USE_ISOC23 : u32 = 0 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 202405 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_XOPEN2K24 : 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_TIME_BITS64 : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_SCANF : u32 = 0 ; pub const __GLIBC_USE_C23_STRTOL : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_60559_BFP__ : u32 = 201404 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_IEC_60559_COMPLEX__ : u32 = 201404 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 43 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI : u32 = 0 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C23 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __STATFS_MATCHES_STATFS64 : u32 = 1 ; pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_TIME64_H : u32 = 1 ; pub const _____fpos_t_defined : u32 = 1 ; pub const ____mbstate_t_defined : u32 = 1 ; pub const _____fpos64_t_defined : u32 = 1 ; pub const ____FILE_defined : u32 = 1 ; pub const __FILE_defined : u32 = 1 ; pub const __struct_FILE_defined : u32 = 1 ; pub const _IO_EOF_SEEN : u32 = 16 ; pub const _IO_ERR_SEEN : u32 = 32 ; pub const _IO_USER_LOCK : u32 = 32768 ; pub const __cookie_io_functions_t_defined : u32 = 1 ; pub const _IOFBF : u32 = 0 ; pub const _IOLBF : u32 = 1 ; pub const _IONBF : u32 = 2 ; pub const BUFSIZ : u32 = 8192 ; pub const EOF : i32 = - 1 ; pub const SEEK_SET : u32 = 0 ; pub const SEEK_CUR : u32 = 1 ; pub const SEEK_END : u32 = 2 ; pub const P_tmpdir : & [u8 ; 5] = b"/tmp\0" ; pub const L_tmpnam : u32 = 20 ; pub const TMP_MAX : u32 = 238328 ; pub const _BITS_STDIO_LIM_H : u32 = 1 ; pub const FILENAME_MAX : u32 = 4096 ; pub const L_ctermid : u32 = 9 ; pub const FOPEN_MAX : u32 = 16 ; pub const __HAVE_FLOAT128 : u32 = 1 ; pub const __HAVE_DISTINCT_FLOAT128 : u32 = 1 ; pub const __HAVE_FLOAT64X : u32 = 1 ; pub const __HAVE_FLOAT64X_LONG_DOUBLE : u32 = 1 ; pub const __HAVE_FLOAT16 : u32 = 0 ; pub const __HAVE_FLOAT32 : u32 = 1 ; pub const __HAVE_FLOAT64 : u32 = 1 ; pub const __HAVE_FLOAT32X : u32 = 1 ; pub const __HAVE_FLOAT128X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT16 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64 : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT32X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT64X : u32 = 0 ; pub const __HAVE_DISTINCT_FLOAT128X : u32 = 0 ; pub const __HAVE_FLOATN_NOT_TYPEDEF : u32 = 0 ; pub const _STDINT_H : u32 = 1 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const _BITS_STDINT_LEAST_H : u32 = 1 ; pub const INT8_MIN : i32 = - 128 ; pub const INT16_MIN : i32 = - 32768 ; pub const INT32_MIN : i32 = - 2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = - 128 ; pub const INT_LEAST16_MIN : i32 = - 32768 ; pub const INT_LEAST32_MIN : i32 = - 2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = - 128 ; pub const INT_FAST16_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST32_MIN : i64 = - 9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = - 1 ; pub const UINT_FAST32_MAX : i32 = - 1 ; pub const INTPTR_MIN : i64 = - 9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = - 1 ; pub const PTRDIFF_MIN : i64 = - 9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = - 2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = - 1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const JS_PROP_CONFIGURABLE : u32 = 1 ; pub const JS_PROP_WRITABLE : u32 = 2 ; pub const JS_PROP_ENUMERABLE : u32 = 4 ; pub const JS_PROP_C_W_E : u32 = 7 ; pub const JS_PROP_LENGTH : u32 = 8 ; pub const JS_PROP_TMASK : u32 = 48 ; pub const JS_PROP_NORMAL : u32 = 0 ; pub const JS_PROP_GETSET : u32 = 16 ; pub const JS_PROP_VARREF : u32 = 32 ; pub const JS_PROP_AUTOINIT : u32 = 48 ; pub const JS_PROP_HAS_SHIFT : u32 = 8 ; pub const JS_PROP_HAS_CONFIGURABLE : u32 = 256 ; pub const JS_PROP_HAS_WRITABLE : u32 = 512 ; pub const JS_PROP_HAS_ENUMERABLE : u32 = 1024 ; pub const JS_PROP_HAS_GET : u32 = 2048 ; pub const JS_PROP_HAS_SET : u32 = 4096 ; pub const JS_PROP_HAS_VALUE : u32 = 8192 ; pub const JS_PROP_THROW : u32 = 16384 ; pub const JS_PROP_THROW_STRICT : u32 = 32768 ; pub const JS_PROP_NO_ADD : u32 = 65536 ; pub const JS_PROP_NO_EXOTIC : u32 = 131072 ; pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ; pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ; pub const JS_EVAL_TYPE_MODULE : u32 = 1 ; pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ; pub const JS_EVAL_TYPE_INDIRECT : u32 = 3 ; pub const JS_EVAL_TYPE_MASK : u32 = 3 ; pub const JS_EVAL_FLAG_STRICT : u32 = 8 ; pub const JS_EVAL_FLAG_STRIP : u32 = 16 ; pub const JS_EVAL_FLAG_COMPILE_ONLY : u32 = 32 ; pub const JS_EVAL_FLAG_BACKTRACE_BARRIER : u32 = 64 ; pub const JS_ATOM_NULL : u32 = 0 ; pub const JS_CALL_FLAG_CONSTRUCTOR : u32 = 1 ; pub const JS_GPN_STRING_MASK : u32 = 1 ; pub const JS_GPN_SYMBOL_MASK : u32 = 2 ; pub const JS_GPN_PRIVATE_MASK : u32 = 4 ; pub const JS_GPN_ENUM_ONLY : u32 = 16 ; pub const JS_GPN_SET_ENUM : u32 = 32 ; pub const JS_PARSE_JSON_EXT : u32 = 1 ; pub const JS_WRITE_OBJ_BYTECODE : u32 = 1 ; pub const JS_WRITE_OBJ_BSWAP : u32 = 2 ; pub const JS_WRITE_OBJ_SAB : u32 = 4 ; pub const JS_WRITE_OBJ_REFERENCE : u32 = 8 ; pub const JS_READ_OBJ_BYTECODE : u32 = 1 ; pub const JS_READ_OBJ_ROM_DATA : u32 = 2 ; pub const JS_READ_OBJ_SAB : u32 = 4 ; pub const JS_READ_OBJ_REFERENCE : u32 = 8 ; pub const JS_DEF_CFUNC : u32 = 0 ; pub const JS_DEF_CGETSET : u32 = 1 ; pub const JS_DEF_CGETSET_MAGIC : u32 = 2 ; pub const JS_DEF_PROP_STRING : u32 = 3 ; pub const JS_DEF_PROP_INT32 : u32 = 4 ; pub const JS_DEF_PROP_INT64 : u32 = 5 ; pub const JS_DEF_PROP_DOUBLE : u32 = 6 ; pub const JS_DEF_PROP_UNDEFINED : u32 = 7 ; pub const JS_DEF_OBJECT : u32 = 8 ; pub const JS_DEF_ALIAS : u32 = 9 ; pub const _STDLIB_H : u32 = 1 ; pub const WNOHANG : u32 = 1 ; pub const WUNTRACED : u32 = 2 ; pub const WSTOPPED : u32 = 2 ; pub const WEXITED : u32 = 4 ; pub const WCONTINUED : u32 = 8 ; pub const WNOWAIT : u32 = 16777216 ; pub const __WNOTHREAD : u32 = 536870912 ; pub const __WALL : u32 = 1073741824 ; pub const __WCLONE : u32 = 2147483648 ; pub const __W_CONTINUED : u32 = 65535 ; pub const __WCOREFLAG : u32 = 128 ; pub const __ldiv_t_defined : u32 = 1 ; pub const __lldiv_t_defined : u32 = 1 ; pub const RAND_MAX : u32 = 2147483647 ; pub const EXIT_FAILURE : u32 = 1 ; pub const EXIT_SUCCESS : u32 = 0 ; pub const _SYS_TYPES_H : u32 = 1 ; pub const __clock_t_defined : u32 = 1 ; pub const __clockid_t_defined : u32 = 1 ; pub const __time_t_defined : u32 = 1 ; pub const __timer_t_defined : u32 = 1 ; pub const __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 _ALLOCA_H : u32 = 1 ; pub const _INTTYPES_H : u32 = 1 ; pub const ____gwchar_t_defined : u32 = 1 ; pub const __PRI64_PREFIX : & [u8 ; 2] = b"l\0" ; pub const __PRIPTR_PREFIX : & [u8 ; 2] = b"l\0" ; pub const PRId8 : & [u8 ; 4] = b"hhd\0" ; pub const PRId16 : & [u8 ; 3] = b"hd\0" ; pub const PRId32 : & [u8 ; 2] = b"d\0" ; pub const PRId64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const PRIdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const PRIdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const PRIdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const PRIdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const PRIi8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIi16 : & [u8 ; 3] = b"hi\0" ; pub const PRIi32 : & [u8 ; 2] = b"i\0" ; pub const PRIi64 : & [u8 ; 3] = b"li\0" ; pub const PRIiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const PRIiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const PRIiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const PRIiFAST16 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST32 : & [u8 ; 3] = b"li\0" ; pub const PRIiFAST64 : & [u8 ; 3] = b"li\0" ; pub const PRIo8 : & [u8 ; 4] = b"hho\0" ; pub const PRIo16 : & [u8 ; 3] = b"ho\0" ; pub const PRIo32 : & [u8 ; 2] = b"o\0" ; pub const PRIo64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const PRIoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const PRIoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const PRIoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const PRIoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const PRIu8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIu16 : & [u8 ; 3] = b"hu\0" ; pub const PRIu32 : & [u8 ; 2] = b"u\0" ; pub const PRIu64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const PRIuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const PRIuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const PRIuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const PRIuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const PRIx8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIx16 : & [u8 ; 3] = b"hx\0" ; pub const PRIx32 : & [u8 ; 2] = b"x\0" ; pub const PRIx64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const PRIxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const PRIxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const PRIxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const PRIxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const PRIX8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIX16 : & [u8 ; 3] = b"hX\0" ; pub const PRIX32 : & [u8 ; 2] = b"X\0" ; pub const PRIX64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXLEAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXLEAST16 : & [u8 ; 3] = b"hX\0" ; pub const PRIXLEAST32 : & [u8 ; 2] = b"X\0" ; pub const PRIXLEAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST8 : & [u8 ; 4] = b"hhX\0" ; pub const PRIXFAST16 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST32 : & [u8 ; 3] = b"lX\0" ; pub const PRIXFAST64 : & [u8 ; 3] = b"lX\0" ; pub const PRIdMAX : & [u8 ; 3] = b"ld\0" ; pub const PRIiMAX : & [u8 ; 3] = b"li\0" ; pub const PRIoMAX : & [u8 ; 3] = b"lo\0" ; pub const PRIuMAX : & [u8 ; 3] = b"lu\0" ; pub const PRIxMAX : & [u8 ; 3] = b"lx\0" ; pub const PRIXMAX : & [u8 ; 3] = b"lX\0" ; pub const PRIdPTR : & [u8 ; 3] = b"ld\0" ; pub const PRIiPTR : & [u8 ; 3] = b"li\0" ; pub const PRIoPTR : & [u8 ; 3] = b"lo\0" ; pub const PRIuPTR : & [u8 ; 3] = b"lu\0" ; pub const PRIxPTR : & [u8 ; 3] = b"lx\0" ; pub const PRIXPTR : & [u8 ; 3] = b"lX\0" ; pub const SCNd8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNd16 : & [u8 ; 3] = b"hd\0" ; pub const SCNd32 : & [u8 ; 2] = b"d\0" ; pub const SCNd64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdLEAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdLEAST16 : & [u8 ; 3] = b"hd\0" ; pub const SCNdLEAST32 : & [u8 ; 2] = b"d\0" ; pub const SCNdLEAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST8 : & [u8 ; 4] = b"hhd\0" ; pub const SCNdFAST16 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST32 : & [u8 ; 3] = b"ld\0" ; pub const SCNdFAST64 : & [u8 ; 3] = b"ld\0" ; pub const SCNi8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNi16 : & [u8 ; 3] = b"hi\0" ; pub const SCNi32 : & [u8 ; 2] = b"i\0" ; pub const SCNi64 : & [u8 ; 3] = b"li\0" ; pub const SCNiLEAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiLEAST16 : & [u8 ; 3] = b"hi\0" ; pub const SCNiLEAST32 : & [u8 ; 2] = b"i\0" ; pub const SCNiLEAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST8 : & [u8 ; 4] = b"hhi\0" ; pub const SCNiFAST16 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST32 : & [u8 ; 3] = b"li\0" ; pub const SCNiFAST64 : & [u8 ; 3] = b"li\0" ; pub const SCNu8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNu16 : & [u8 ; 3] = b"hu\0" ; pub const SCNu32 : & [u8 ; 2] = b"u\0" ; pub const SCNu64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuLEAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuLEAST16 : & [u8 ; 3] = b"hu\0" ; pub const SCNuLEAST32 : & [u8 ; 2] = b"u\0" ; pub const SCNuLEAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST8 : & [u8 ; 4] = b"hhu\0" ; pub const SCNuFAST16 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST32 : & [u8 ; 3] = b"lu\0" ; pub const SCNuFAST64 : & [u8 ; 3] = b"lu\0" ; pub const SCNo8 : & [u8 ; 4] = b"hho\0" ; pub const SCNo16 : & [u8 ; 3] = b"ho\0" ; pub const SCNo32 : & [u8 ; 2] = b"o\0" ; pub const SCNo64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoLEAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoLEAST16 : & [u8 ; 3] = b"ho\0" ; pub const SCNoLEAST32 : & [u8 ; 2] = b"o\0" ; pub const SCNoLEAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST8 : & [u8 ; 4] = b"hho\0" ; pub const SCNoFAST16 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST32 : & [u8 ; 3] = b"lo\0" ; pub const SCNoFAST64 : & [u8 ; 3] = b"lo\0" ; pub const SCNx8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNx16 : & [u8 ; 3] = b"hx\0" ; pub const SCNx32 : & [u8 ; 2] = b"x\0" ; pub const SCNx64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxLEAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxLEAST16 : & [u8 ; 3] = b"hx\0" ; pub const SCNxLEAST32 : & [u8 ; 2] = b"x\0" ; pub const SCNxLEAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST8 : & [u8 ; 4] = b"hhx\0" ; pub const SCNxFAST16 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST32 : & [u8 ; 3] = b"lx\0" ; pub const SCNxFAST64 : & [u8 ; 3] = b"lx\0" ; pub const SCNdMAX : & [u8 ; 3] = b"ld\0" ; pub const SCNiMAX : & [u8 ; 3] = b"li\0" ; pub const SCNoMAX : & [u8 ; 3] = b"lo\0" ; pub const SCNuMAX : & [u8 ; 3] = b"lu\0" ; pub const SCNxMAX : & [u8 ; 3] = b"lx\0" ; pub const SCNdPTR : & [u8 ; 3] = b"ld\0" ; pub const SCNiPTR : & [u8 ; 3] = b"li\0" ; pub const SCNoPTR : & [u8 ; 3] = b"lo\0" ; pub const SCNuPTR : & [u8 ; 3] = b"lu\0" ; pub const SCNxPTR : & [u8 ; 3] = b"lx\0" ; pub const UTF8_CHAR_LEN_MAX : u32 = 6 ; pub type __gnuc_va_list = __builtin_va_list ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __int_least8_t = __int8_t ; pub type __uint_least8_t = __uint8_t ; pub type __int_least16_t = __int16_t ; pub type __uint_least16_t = __uint16_t ; pub type __int_least32_t = __int32_t ; pub type __uint_least32_t = __uint32_t ; pub type __int_least64_t = __int64_t ; pub type __uint_least64_t = __uint64_t ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_t = :: std :: os :: raw :: c_ulong ; pub type __off_t = :: std :: os :: raw :: c_long ; pub type __off64_t = :: std :: os :: raw :: c_long ; pub type __pid_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __fsid_t { pub __val : [:: std :: os :: raw :: c_int ; 2usize] , } # [test] fn bindgen_test_layout___fsid_t () { const UNINIT : :: std :: mem :: MaybeUninit < __fsid_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __fsid_t > () , 8usize , concat ! ("Size of: " , stringify ! (__fsid_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __fsid_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__fsid_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __val) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__fsid_t) , "::" , stringify ! (__val))) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __suseconds64_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub struct __mbstate_t { pub __count : :: std :: os :: raw :: c_int , pub __value : __mbstate_t__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union __mbstate_t__bindgen_ty_1 { pub __wch : :: std :: os :: raw :: c_uint , pub __wchb : [:: std :: os :: raw :: c_char ; 4usize] , } # [test] fn bindgen_test_layout___mbstate_t__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Size of: " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __wchb) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t__bindgen_ty_1) , "::" , stringify ! (__wchb))) ; } # [test] fn bindgen_test_layout___mbstate_t () { const UNINIT : :: std :: mem :: MaybeUninit < __mbstate_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __mbstate_t > () , 8usize , concat ! ("Size of: " , stringify ! (__mbstate_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __mbstate_t > () , 4usize , concat ! ("Alignment of " , stringify ! (__mbstate_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__mbstate_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos_t) , "::" , stringify ! (__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 : :: std :: mem :: MaybeUninit < _G_fpos64_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _G_fpos64_t > () , 16usize , concat ! ("Size of: " , stringify ! (_G_fpos64_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _G_fpos64_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_G_fpos64_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __pos) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__pos))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __state) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (_G_fpos64_t) , "::" , stringify ! (__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 = :: std :: os :: raw :: c_void ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_FILE { pub _flags : :: std :: os :: raw :: c_int , pub _IO_read_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_read_end : * mut :: std :: os :: raw :: c_char , pub _IO_read_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_base : * mut :: std :: os :: raw :: c_char , pub _IO_write_ptr : * mut :: std :: os :: raw :: c_char , pub _IO_write_end : * mut :: std :: os :: raw :: c_char , pub _IO_buf_base : * mut :: std :: os :: raw :: c_char , pub _IO_buf_end : * mut :: std :: os :: raw :: c_char , pub _IO_save_base : * mut :: std :: os :: raw :: c_char , pub _IO_backup_base : * mut :: std :: os :: raw :: c_char , pub _IO_save_end : * mut :: std :: os :: raw :: c_char , pub _markers : * mut _IO_marker , pub _chain : * mut _IO_FILE , pub _fileno : :: std :: os :: raw :: c_int , pub _bitfield_align_1 : [u32 ; 0] , pub _bitfield_1 : __BindgenBitfieldUnit < [u8 ; 3usize] > , pub _short_backupbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _old_offset : __off_t , pub _cur_column : :: std :: os :: raw :: c_ushort , pub _vtable_offset : :: std :: os :: raw :: c_schar , pub _shortbuf : [:: std :: os :: raw :: c_char ; 1usize] , pub _lock : * mut _IO_lock_t , pub _offset : __off64_t , pub _codecvt : * mut _IO_codecvt , pub _wide_data : * mut _IO_wide_data , pub _freeres_list : * mut _IO_FILE , pub _freeres_buf : * mut :: std :: os :: raw :: c_void , pub _prevchain : * mut * mut _IO_FILE , pub _mode : :: std :: os :: raw :: c_int , pub _unused3 : :: std :: os :: raw :: c_int , pub _total_written : __uint64_t , pub _unused2 : [:: std :: os :: raw :: c_char ; 8usize] , } # [test] fn bindgen_test_layout__IO_FILE () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_FILE > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_FILE > () , 216usize , concat ! ("Size of: " , stringify ! (_IO_FILE))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_FILE > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_FILE))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_flags))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _markers) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_markers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _chain) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_chain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _fileno) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_fileno))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _short_backupbuf) as usize - ptr as usize } , 119usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_short_backupbuf))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _shortbuf) as usize - ptr as usize } , 131usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_shortbuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _lock) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _offset) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _codecvt) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_codecvt))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . _prevchain) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_prevchain))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _mode) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_mode))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused3) as usize - ptr as usize } , 196usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _total_written) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_total_written))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . _unused2) as usize - ptr as usize } , 208usize , concat ! ("Offset of field: " , stringify ! (_IO_FILE) , "::" , stringify ! (_unused2))) ; } impl _IO_FILE { # [inline] pub fn _flags2 (& self) -> :: std :: os :: raw :: c_int { unsafe { :: std :: mem :: transmute (self . _bitfield_1 . get (0usize , 24u8) as u32) } } # [inline] pub fn set__flags2 (& mut self , val : :: std :: os :: raw :: c_int) { unsafe { let val : u32 = :: std :: mem :: transmute (val) ; self . _bitfield_1 . set (0usize , 24u8 , val as u64) } } # [inline] pub fn new_bitfield_1 (_flags2 : :: std :: os :: raw :: c_int) -> __BindgenBitfieldUnit < [u8 ; 3usize] > { let mut __bindgen_bitfield_unit : __BindgenBitfieldUnit < [u8 ; 3usize] > = Default :: default () ; __bindgen_bitfield_unit . set (0usize , 24u8 , { let _flags2 : u32 = unsafe { i32::cast_unsigned (_flags2) } ; _flags2 as u64 }) ; __bindgen_bitfield_unit } } pub type cookie_read_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * mut :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_write_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __buf : * const :: std :: os :: raw :: c_char , __nbytes : usize) -> __ssize_t > ; pub type cookie_seek_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void , __pos : * mut __off64_t , __w : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > ; pub type cookie_close_function_t = :: std :: option :: Option < unsafe extern "C" fn (__cookie : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct _IO_cookie_io_functions_t { pub read : cookie_read_function_t , pub write : cookie_write_function_t , pub seek : cookie_seek_function_t , pub close : cookie_close_function_t , } # [test] fn bindgen_test_layout__IO_cookie_io_functions_t () { const UNINIT : :: std :: mem :: MaybeUninit < _IO_cookie_io_functions_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < _IO_cookie_io_functions_t > () , 32usize , concat ! ("Size of: " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (:: std :: mem :: align_of :: < _IO_cookie_io_functions_t > () , 8usize , concat ! ("Alignment of " , stringify ! (_IO_cookie_io_functions_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 va_list = __gnuc_va_list ; pub type off_t = __off_t ; pub type fpos_t = __fpos_t ; extern "C" { pub static mut stdin : * mut FILE ; } extern "C" { pub static mut stdout : * mut FILE ; } extern "C" { pub static mut stderr : * mut FILE ; } extern "C" { pub fn remove (__filename : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rename (__old : * const :: std :: os :: raw :: c_char , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn renameat (__oldfd : :: std :: os :: raw :: c_int , __old : * const :: std :: os :: raw :: c_char , __newfd : :: std :: os :: raw :: c_int , __new : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn tmpfile () -> * mut FILE ; } extern "C" { pub fn tmpnam (arg1 : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tmpnam_r (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn tempnam (__dir : * const :: std :: os :: raw :: c_char , __pfx : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fflush (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fflush_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn freopen (__filename : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> * mut FILE ; } extern "C" { pub fn fdopen (__fd : :: std :: os :: raw :: c_int , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn fopencookie (__magic_cookie : * mut :: std :: os :: raw :: c_void , __modes : * const :: std :: os :: raw :: c_char , __io_funcs : cookie_io_functions_t) -> * mut FILE ; } extern "C" { pub fn fmemopen (__s : * mut :: std :: os :: raw :: c_void , __len : usize , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn open_memstream (__bufloc : * mut * mut :: std :: os :: raw :: c_char , __sizeloc : * mut usize) -> * mut FILE ; } extern "C" { pub fn setbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn setvbuf (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __modes : :: std :: os :: raw :: c_int , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setbuffer (__stream : * mut FILE , __buf : * mut :: std :: os :: raw :: c_char , __size : usize) ; } extern "C" { pub fn setlinebuf (__stream : * mut FILE) ; } extern "C" { pub fn fprintf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn printf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfprintf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vprintf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsprintf (__s : * mut :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn snprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsnprintf (__s : * mut :: std :: os :: raw :: c_char , __maxlen : :: std :: os :: raw :: c_ulong , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vasprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __f : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn asprintf (__ptr : * mut * mut :: std :: os :: raw :: c_char , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vdprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dprintf (__fd : :: std :: os :: raw :: c_int , __fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fscanf (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn scanf (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn sscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } pub type __cfloat128 = __BindgenComplex < u128 > ; pub type _Float128 = u128 ; pub type _Float32 = f32 ; pub type _Float64 = f64 ; pub type _Float32x = f64 ; pub type _Float64x = u128 ; extern "C" { # [link_name = "\u{1}__isoc99_fscanf"] pub fn fscanf1 (__stream : * mut FILE , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_scanf"] pub fn scanf1 (__format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_sscanf"] pub fn sscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vfscanf (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vscanf (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn vsscanf (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vfscanf"] pub fn vfscanf1 (__s : * mut FILE , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vscanf"] pub fn vscanf1 (__format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { # [link_name = "\u{1}__isoc99_vsscanf"] pub fn vsscanf1 (__s : * const :: std :: os :: raw :: c_char , __format : * const :: std :: os :: raw :: c_char , __arg : * mut __va_list_tag) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getchar_unlocked () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgetc_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fputc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putc_unlocked (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putchar_unlocked (__c : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getw (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn putw (__w : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fgets (__s : * mut :: std :: os :: raw :: c_char , __n : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn __getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getdelim (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __delimiter : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn getline (__lineptr : * mut * mut :: std :: os :: raw :: c_char , __n : * mut usize , __stream : * mut FILE) -> __ssize_t ; } extern "C" { pub fn fputs (__s : * const :: std :: os :: raw :: c_char , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn puts (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ungetc (__c : :: std :: os :: raw :: c_int , __stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fread (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __stream : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fwrite (__ptr : * const :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong , __n : :: std :: os :: raw :: c_ulong , __s : * mut FILE) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn fread_unlocked (__ptr : * mut :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fwrite_unlocked (__ptr : * const :: std :: os :: raw :: c_void , __size : usize , __n : usize , __stream : * mut FILE) -> usize ; } extern "C" { pub fn fseek (__stream : * mut FILE , __off : :: std :: os :: raw :: c_long , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftell (__stream : * mut FILE) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn rewind (__stream : * mut FILE) ; } extern "C" { pub fn fseeko (__stream : * mut FILE , __off : __off_t , __whence : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ftello (__stream : * mut FILE) -> __off_t ; } extern "C" { pub fn fgetpos (__stream : * mut FILE , __pos : * mut fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fsetpos (__stream : * mut FILE , __pos : * const fpos_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr (__stream : * mut FILE) ; } extern "C" { pub fn feof (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearerr_unlocked (__stream : * mut FILE) ; } extern "C" { pub fn feof_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn ferror_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perror (__s : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn fileno (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fileno_unlocked (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pclose (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn popen (__command : * const :: std :: os :: raw :: c_char , __modes : * const :: std :: os :: raw :: c_char) -> * mut FILE ; } extern "C" { pub fn ctermid (__s : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn flockfile (__stream : * mut FILE) ; } extern "C" { pub fn ftrylockfile (__stream : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn funlockfile (__stream : * mut FILE) ; } extern "C" { pub fn __uflow (arg1 : * mut FILE) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn __overflow (arg1 : * mut FILE , arg2 : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type int_least8_t = __int_least8_t ; pub type int_least16_t = __int_least16_t ; pub type int_least32_t = __int_least32_t ; pub type int_least64_t = __int_least64_t ; pub type uint_least8_t = __uint_least8_t ; pub type uint_least16_t = __uint_least16_t ; pub type uint_least32_t = __uint_least32_t ; pub type uint_least64_t = __uint_least64_t ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRuntime { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSContext { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSObject { _unused : [u8 ; 0] , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClass { _unused : [u8 ; 0] , } pub type JSClassID = u32 ; pub type JSAtom = u32 ; pub const JS_TAG_FIRST : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_DECIMAL : _bindgen_ty_1 = - 11 ; pub const JS_TAG_BIG_INT : _bindgen_ty_1 = - 10 ; pub const JS_TAG_BIG_FLOAT : _bindgen_ty_1 = - 9 ; pub const JS_TAG_SYMBOL : _bindgen_ty_1 = - 8 ; pub const JS_TAG_STRING : _bindgen_ty_1 = - 7 ; pub const JS_TAG_MODULE : _bindgen_ty_1 = - 3 ; pub const JS_TAG_FUNCTION_BYTECODE : _bindgen_ty_1 = - 2 ; pub const JS_TAG_OBJECT : _bindgen_ty_1 = - 1 ; pub const JS_TAG_INT : _bindgen_ty_1 = 0 ; pub const JS_TAG_BOOL : _bindgen_ty_1 = 1 ; pub const JS_TAG_NULL : _bindgen_ty_1 = 2 ; pub const JS_TAG_UNDEFINED : _bindgen_ty_1 = 3 ; pub const JS_TAG_UNINITIALIZED : _bindgen_ty_1 = 4 ; pub const JS_TAG_CATCH_OFFSET : _bindgen_ty_1 = 5 ; pub const JS_TAG_EXCEPTION : _bindgen_ty_1 = 6 ; pub const JS_TAG_FLOAT64 : _bindgen_ty_1 = 7 ; pub type _bindgen_ty_1 = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSRefCountHeader { pub ref_count : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSRefCountHeader () { const UNINIT : :: std :: mem :: MaybeUninit < JSRefCountHeader > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSRefCountHeader > () , 4usize , concat ! ("Size of: " , stringify ! (JSRefCountHeader))) ; assert_eq ! (:: std :: mem :: align_of :: < JSRefCountHeader > () , 4usize , concat ! ("Alignment of " , stringify ! (JSRefCountHeader))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ref_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSRefCountHeader) , "::" , stringify ! (ref_count))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union JSValueUnion { pub int32 : i32 , pub float64 : f64 , pub ptr : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSValueUnion () { const UNINIT : :: std :: mem :: MaybeUninit < JSValueUnion > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValueUnion > () , 8usize , concat ! ("Size of: " , stringify ! (JSValueUnion))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValueUnion > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValueUnion))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . int32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (int32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . float64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (float64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . ptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValueUnion) , "::" , stringify ! (ptr))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSValue { pub u : JSValueUnion , pub tag : i64 , } # [test] fn bindgen_test_layout_JSValue () { const UNINIT : :: std :: mem :: MaybeUninit < JSValue > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSValue > () , 16usize , concat ! ("Size of: " , stringify ! (JSValue))) ; assert_eq ! (:: std :: mem :: align_of :: < JSValue > () , 8usize , concat ! ("Alignment of " , stringify ! (JSValue))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (u))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tag) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSValue) , "::" , stringify ! (tag))) ; } pub type JSCFunction = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; pub type JSCFunctionMagic = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > ; pub type JSCFunctionData = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int , func_data : * mut JSValue) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocState { pub malloc_count : usize , pub malloc_size : usize , pub malloc_limit : usize , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSMallocState () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocState > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocState > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocState))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocState > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocState))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocState) , "::" , stringify ! (opaque))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMallocFunctions { pub js_malloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_free : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void) > , pub js_realloc : :: std :: option :: Option < unsafe extern "C" fn (s : * mut JSMallocState , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub js_malloc_usable_size : :: std :: option :: Option < unsafe extern "C" fn (ptr : * const :: std :: os :: raw :: c_void) -> usize > , } # [test] fn bindgen_test_layout_JSMallocFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSMallocFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMallocFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSMallocFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMallocFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMallocFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_realloc) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_realloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_malloc_usable_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMallocFunctions) , "::" , stringify ! (js_malloc_usable_size))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSGCObjectHeader { _unused : [u8 ; 0] , } extern "C" { pub fn JS_NewRuntime () -> * mut JSRuntime ; } extern "C" { pub fn JS_SetRuntimeInfo (rt : * mut JSRuntime , info : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_SetMemoryLimit (rt : * mut JSRuntime , limit : usize) ; } extern "C" { pub fn JS_SetGCThreshold (rt : * mut JSRuntime , gc_threshold : usize) ; } extern "C" { pub fn JS_SetMaxStackSize (rt : * mut JSRuntime , stack_size : usize) ; } extern "C" { pub fn JS_UpdateStackTop (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewRuntime2 (mf : * const JSMallocFunctions , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSRuntime ; } extern "C" { pub fn JS_FreeRuntime (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_GetRuntimeOpaque (rt : * mut JSRuntime) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetRuntimeOpaque (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JS_MarkFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , gp : * mut JSGCObjectHeader) > ; extern "C" { pub fn JS_MarkValue (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) ; } extern "C" { pub fn JS_RunGC (rt : * mut JSRuntime) ; } extern "C" { pub fn JS_IsLiveObject (rt : * mut JSRuntime , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewContext (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_FreeContext (s : * mut JSContext) ; } extern "C" { pub fn JS_DupContext (ctx : * mut JSContext) -> * mut JSContext ; } extern "C" { pub fn JS_GetContextOpaque (ctx : * mut JSContext) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_SetContextOpaque (ctx : * mut JSContext , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetRuntime (ctx : * mut JSContext) -> * mut JSRuntime ; } extern "C" { pub fn JS_SetClassProto (ctx : * mut JSContext , class_id : JSClassID , obj : JSValue) ; } extern "C" { pub fn JS_GetClassProto (ctx : * mut JSContext , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewContextRaw (rt : * mut JSRuntime) -> * mut JSContext ; } extern "C" { pub fn JS_AddIntrinsicBaseObjects (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicDate (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicEval (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicStringNormalize (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExpCompiler (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicRegExp (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicJSON (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicProxy (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicMapSet (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicTypedArrays (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicPromise (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigInt (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigFloat (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicBigDecimal (ctx : * mut JSContext) ; } extern "C" { pub fn JS_AddIntrinsicOperators (ctx : * mut JSContext) ; } extern "C" { pub fn JS_EnableBignumExt (ctx : * mut JSContext , enable : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_string_codePointRange (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn js_malloc_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc_rt (rt : * mut JSRuntime , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size_rt (rt : * mut JSRuntime , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_mallocz_rt (rt : * mut JSRuntime , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_free (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_realloc (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_malloc_usable_size (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_void) -> usize ; } extern "C" { pub fn js_realloc2 (ctx : * mut JSContext , ptr : * mut :: std :: os :: raw :: c_void , size : usize , pslack : * mut usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_mallocz (ctx : * mut JSContext , size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn js_strdup (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn js_strndup (ctx : * mut JSContext , s : * const :: std :: os :: raw :: c_char , n : usize) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSMemoryUsage { pub malloc_size : i64 , pub malloc_limit : i64 , pub memory_used_size : i64 , pub malloc_count : i64 , pub memory_used_count : i64 , pub atom_count : i64 , pub atom_size : i64 , pub str_count : i64 , pub str_size : i64 , pub obj_count : i64 , pub obj_size : i64 , pub prop_count : i64 , pub prop_size : i64 , pub shape_count : i64 , pub shape_size : i64 , pub js_func_count : i64 , pub js_func_size : i64 , pub js_func_code_size : i64 , pub js_func_pc2line_count : i64 , pub js_func_pc2line_size : i64 , pub c_func_count : i64 , pub array_count : i64 , pub fast_array_count : i64 , pub fast_array_elements : i64 , pub binary_object_count : i64 , pub binary_object_size : i64 , } # [test] fn bindgen_test_layout_JSMemoryUsage () { const UNINIT : :: std :: mem :: MaybeUninit < JSMemoryUsage > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSMemoryUsage > () , 208usize , concat ! ("Size of: " , stringify ! (JSMemoryUsage))) ; assert_eq ! (:: std :: mem :: align_of :: < JSMemoryUsage > () , 8usize , concat ! ("Alignment of " , stringify ! (JSMemoryUsage))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_limit) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_limit))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . malloc_count) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (malloc_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . memory_used_count) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (memory_used_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_count) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom_size) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (atom_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_count) as usize - ptr as usize } , 56usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_size) as usize - ptr as usize } , 64usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (str_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_count) as usize - ptr as usize } , 72usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . obj_size) as usize - ptr as usize } , 80usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (obj_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_count) as usize - ptr as usize } , 88usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_size) as usize - ptr as usize } , 96usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (prop_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_count) as usize - ptr as usize } , 104usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . shape_size) as usize - ptr as usize } , 112usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (shape_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_count) as usize - ptr as usize } , 120usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_size) as usize - ptr as usize } , 128usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_code_size) as usize - ptr as usize } , 136usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_code_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_count) as usize - ptr as usize } , 144usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . js_func_pc2line_size) as usize - ptr as usize } , 152usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (js_func_pc2line_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . c_func_count) as usize - ptr as usize } , 160usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (c_func_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . array_count) as usize - ptr as usize } , 168usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_count) as usize - ptr as usize } , 176usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fast_array_elements) as usize - ptr as usize } , 184usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (fast_array_elements))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_count) as usize - ptr as usize } , 192usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . binary_object_size) as usize - ptr as usize } , 200usize , concat ! ("Offset of field: " , stringify ! (JSMemoryUsage) , "::" , stringify ! (binary_object_size))) ; } extern "C" { pub fn JS_ComputeMemoryUsage (rt : * mut JSRuntime , s : * mut JSMemoryUsage) ; } extern "C" { pub fn JS_DumpMemoryUsage (fp : * mut FILE , s : * const JSMemoryUsage , rt : * mut JSRuntime) ; } extern "C" { pub fn JS_NewAtomLen (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char , len : usize) -> JSAtom ; } extern "C" { pub fn JS_NewAtom (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSAtom ; } extern "C" { pub fn JS_NewAtomUInt32 (ctx : * mut JSContext , n : u32) -> JSAtom ; } extern "C" { pub fn JS_DupAtom (ctx : * mut JSContext , v : JSAtom) -> JSAtom ; } extern "C" { pub fn JS_FreeAtom (ctx : * mut JSContext , v : JSAtom) ; } extern "C" { pub fn JS_FreeAtomRT (rt : * mut JSRuntime , v : JSAtom) ; } extern "C" { pub fn JS_AtomToValue (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToString (ctx : * mut JSContext , atom : JSAtom) -> JSValue ; } extern "C" { pub fn JS_AtomToCString (ctx : * mut JSContext , atom : JSAtom) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_ValueToAtom (ctx : * mut JSContext , val : JSValue) -> JSAtom ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSPropertyEnum { pub is_enumerable : :: std :: os :: raw :: c_int , pub atom : JSAtom , } # [test] fn bindgen_test_layout_JSPropertyEnum () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyEnum > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyEnum > () , 8usize , concat ! ("Size of: " , stringify ! (JSPropertyEnum))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyEnum > () , 4usize , concat ! ("Alignment of " , stringify ! (JSPropertyEnum))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . is_enumerable) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (is_enumerable))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . atom) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (JSPropertyEnum) , "::" , stringify ! (atom))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSPropertyDescriptor { pub flags : :: std :: os :: raw :: c_int , pub value : JSValue , pub getter : JSValue , pub setter : JSValue , } # [test] fn bindgen_test_layout_JSPropertyDescriptor () { const UNINIT : :: std :: mem :: MaybeUninit < JSPropertyDescriptor > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSPropertyDescriptor > () , 56usize , concat ! ("Size of: " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (:: std :: mem :: align_of :: < JSPropertyDescriptor > () , 8usize , concat ! ("Alignment of " , stringify ! (JSPropertyDescriptor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . flags) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . value) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (value))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSPropertyDescriptor) , "::" , stringify ! (setter))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassExoticMethods { pub get_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_own_property_names : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue) -> :: std :: os :: raw :: c_int > , pub delete_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int > , pub define_own_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , pub has_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom) -> :: std :: os :: raw :: c_int > , pub get_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , receiver : JSValue) -> JSValue > , pub set_property : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , obj : JSValue , atom : JSAtom , value : JSValue , receiver : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int > , } # [test] fn bindgen_test_layout_JSClassExoticMethods () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassExoticMethods > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassExoticMethods > () , 56usize , concat ! ("Size of: " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassExoticMethods > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassExoticMethods))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_own_property_names) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_own_property_names))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . delete_property) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (delete_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . define_own_property) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (define_own_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . has_property) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (has_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get_property) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (get_property))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set_property) as usize - ptr as usize } , 48usize , concat ! ("Offset of field: " , stringify ! (JSClassExoticMethods) , "::" , stringify ! (set_property))) ; } pub type JSClassFinalizer = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue) > ; pub type JSClassGCMark = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , val : JSValue , mark_func : JS_MarkFunc) > ; pub type JSClassCall = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , func_obj : JSValue , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , flags : :: std :: os :: raw :: c_int) -> JSValue > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSClassDef { pub class_name : * const :: std :: os :: raw :: c_char , pub finalizer : JSClassFinalizer , pub gc_mark : JSClassGCMark , pub call : JSClassCall , pub exotic : * mut JSClassExoticMethods , } # [test] fn bindgen_test_layout_JSClassDef () { const UNINIT : :: std :: mem :: MaybeUninit < JSClassDef > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSClassDef > () , 40usize , concat ! ("Size of: " , stringify ! (JSClassDef))) ; assert_eq ! (:: std :: mem :: align_of :: < JSClassDef > () , 8usize , concat ! ("Alignment of " , stringify ! (JSClassDef))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . class_name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (class_name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . finalizer) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (finalizer))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gc_mark) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (gc_mark))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . call) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (call))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . exotic) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (JSClassDef) , "::" , stringify ! (exotic))) ; } extern "C" { pub fn JS_NewClassID (pclass_id : * mut JSClassID) -> JSClassID ; } extern "C" { pub fn JS_NewClass (rt : * mut JSRuntime , class_id : JSClassID , class_def : * const JSClassDef) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsRegisteredClass (rt : * mut JSRuntime , class_id : JSClassID) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewBigInt64 (ctx : * mut JSContext , v : i64) -> JSValue ; } extern "C" { pub fn JS_NewBigUint64 (ctx : * mut JSContext , v : u64) -> JSValue ; } extern "C" { pub fn JS_Throw (ctx : * mut JSContext , obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetException (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsError (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ResetUncatchableError (ctx : * mut JSContext) ; } extern "C" { pub fn JS_NewError (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_ThrowSyntaxError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowTypeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowReferenceError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowRangeError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowInternalError (ctx : * mut JSContext , fmt : * const :: std :: os :: raw :: c_char , ...) -> JSValue ; } extern "C" { pub fn JS_ThrowOutOfMemory (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn __JS_FreeValue (ctx : * mut JSContext , v : JSValue) ; } extern "C" { pub fn __JS_FreeValueRT (rt : * mut JSRuntime , v : JSValue) ; } extern "C" { pub fn JS_ToBool (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt32 (ctx : * mut JSContext , pres : * mut i32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToIndex (ctx : * mut JSContext , plen : * mut u64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToFloat64 (ctx : * mut JSContext , pres : * mut f64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToBigInt64 (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ToInt64Ext (ctx : * mut JSContext , pres : * mut i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewStringLen (ctx : * mut JSContext , str1 : * const :: std :: os :: raw :: c_char , len1 : usize) -> JSValue ; } extern "C" { pub fn JS_NewString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_NewAtomString (ctx : * mut JSContext , str_ : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ToString (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToPropertyKey (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_ToCStringLen2 (ctx : * mut JSContext , plen : * mut usize , val1 : JSValue , cesu8 : :: std :: os :: raw :: c_int) -> * const :: std :: os :: raw :: c_char ; } extern "C" { pub fn JS_FreeCString (ctx : * mut JSContext , ptr : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn JS_NewObjectProtoClass (ctx : * mut JSContext , proto : JSValue , class_id : JSClassID) -> JSValue ; } extern "C" { pub fn JS_NewObjectClass (ctx : * mut JSContext , class_id : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewObjectProto (ctx : * mut JSContext , proto : JSValue) -> JSValue ; } extern "C" { pub fn JS_NewObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsFunction (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsConstructor (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetConstructorBit (ctx : * mut JSContext , func_obj : JSValue , val : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_NewArray (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsArray (ctx : * mut JSContext , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , receiver : JSValue , throw_ref_error : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_GetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32) -> JSValue ; } extern "C" { pub fn JS_SetPropertyInternal (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , val : JSValue , this_obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyInt64 (ctx : * mut JSContext , this_obj : JSValue , idx : i64 , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPropertyStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_HasProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsExtensible (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_PreventExtensions (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DeleteProperty (ctx : * mut JSContext , obj : JSValue , prop : JSAtom , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetPrototype (ctx : * mut JSContext , obj : JSValue , proto_val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetPrototype (ctx : * mut JSContext , val : JSValue) -> JSValue ; } extern "C" { pub fn JS_GetOwnPropertyNames (ctx : * mut JSContext , ptab : * mut * mut JSPropertyEnum , plen : * mut u32 , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetOwnProperty (ctx : * mut JSContext , desc : * mut JSPropertyDescriptor , obj : JSValue , prop : JSAtom) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Call (ctx : * mut JSContext , func_obj : JSValue , this_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_Invoke (ctx : * mut JSContext , this_val : JSValue , atom : JSAtom , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor (ctx : * mut JSContext , func_obj : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_CallConstructor2 (ctx : * mut JSContext , func_obj : JSValue , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_DetectModule (input : * const :: std :: os :: raw :: c_char , input_len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_Eval (ctx : * mut JSContext , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalThis (ctx : * mut JSContext , this_obj : JSValue , input : * const :: std :: os :: raw :: c_char , input_len : usize , filename : * const :: std :: os :: raw :: c_char , eval_flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_GetGlobalObject (ctx : * mut JSContext) -> JSValue ; } extern "C" { pub fn JS_IsInstanceOf (ctx : * mut JSContext , val : JSValue , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefineProperty (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValue (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueUint32 (ctx : * mut JSContext , this_obj : JSValue , idx : u32 , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyValueStr (ctx : * mut JSContext , this_obj : JSValue , prop : * const :: std :: os :: raw :: c_char , val : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_DefinePropertyGetSet (ctx : * mut JSContext , this_obj : JSValue , prop : JSAtom , getter : JSValue , setter : JSValue , flags : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetOpaque (obj : JSValue , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetOpaque (obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_GetOpaque2 (ctx : * mut JSContext , obj : JSValue , class_id : JSClassID) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn JS_ParseJSON (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } extern "C" { pub fn JS_ParseJSON2 (ctx : * mut JSContext , buf : * const :: std :: os :: raw :: c_char , buf_len : usize , filename : * const :: std :: os :: raw :: c_char , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_JSONStringify (ctx : * mut JSContext , obj : JSValue , replacer : JSValue , space0 : JSValue) -> JSValue ; } pub type JSFreeArrayBufferDataFunc = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_NewArrayBuffer (ctx : * mut JSContext , buf : * mut u8 , len : usize , free_func : JSFreeArrayBufferDataFunc , opaque : * mut :: std :: os :: raw :: c_void , is_shared : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewArrayBufferCopy (ctx : * mut JSContext , buf : * const u8 , len : usize) -> JSValue ; } extern "C" { pub fn JS_DetachArrayBuffer (ctx : * mut JSContext , obj : JSValue) ; } extern "C" { pub fn JS_GetArrayBuffer (ctx : * mut JSContext , psize : * mut usize , obj : JSValue) -> * mut u8 ; } extern "C" { pub fn JS_GetTypedArrayBuffer (ctx : * mut JSContext , obj : JSValue , pbyte_offset : * mut usize , pbyte_length : * mut usize , pbytes_per_element : * mut usize) -> JSValue ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSSharedArrayBufferFunctions { pub sab_alloc : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > , pub sab_free : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_dup : :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void) > , pub sab_opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_JSSharedArrayBufferFunctions () { const UNINIT : :: std :: mem :: MaybeUninit < JSSharedArrayBufferFunctions > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSSharedArrayBufferFunctions > () , 32usize , concat ! ("Size of: " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (:: std :: mem :: align_of :: < JSSharedArrayBufferFunctions > () , 8usize , concat ! ("Alignment of " , stringify ! (JSSharedArrayBufferFunctions))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_alloc) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_alloc))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_free) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_free))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_dup) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_dup))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . sab_opaque) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (JSSharedArrayBufferFunctions) , "::" , stringify ! (sab_opaque))) ; } extern "C" { pub fn JS_SetSharedArrayBufferFunctions (rt : * mut JSRuntime , sf : * const JSSharedArrayBufferFunctions) ; } pub const JSPromiseStateEnum_JS_PROMISE_PENDING : JSPromiseStateEnum = 0 ; pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED : JSPromiseStateEnum = 1 ; pub const JSPromiseStateEnum_JS_PROMISE_REJECTED : JSPromiseStateEnum = 2 ; pub type JSPromiseStateEnum = :: std :: os :: raw :: c_uint ; extern "C" { pub fn JS_NewPromiseCapability (ctx : * mut JSContext , resolving_funcs : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_PromiseState (ctx : * mut JSContext , promise : JSValue) -> JSPromiseStateEnum ; } extern "C" { pub fn JS_PromiseResult (ctx : * mut JSContext , promise : JSValue) -> JSValue ; } pub type JSHostPromiseRejectionTracker = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) > ; extern "C" { pub fn JS_SetHostPromiseRejectionTracker (rt : * mut JSRuntime , cb : JSHostPromiseRejectionTracker , opaque : * mut :: std :: os :: raw :: c_void) ; } pub type JSInterruptHandler = :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime , opaque : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_SetInterruptHandler (rt : * mut JSRuntime , cb : JSInterruptHandler , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_SetCanBlock (rt : * mut JSRuntime , can_block : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn JS_SetIsHTMLDDA (ctx : * mut JSContext , obj : JSValue) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSModuleDef { _unused : [u8 ; 0] , } pub type JSModuleNormalizeFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_base_name : * const :: std :: os :: raw :: c_char , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut :: std :: os :: raw :: c_char > ; pub type JSModuleLoaderFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef > ; extern "C" { pub fn JS_SetModuleLoaderFunc (rt : * mut JSRuntime , module_normalize : JSModuleNormalizeFunc , module_loader : JSModuleLoaderFunc , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn JS_GetImportMeta (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSValue ; } extern "C" { pub fn JS_GetModuleName (ctx : * mut JSContext , m : * mut JSModuleDef) -> JSAtom ; } pub type JSJobFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> JSValue > ; extern "C" { pub fn JS_EnqueueJob (ctx : * mut JSContext , job_func : JSJobFunc , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_IsJobPending (rt : * mut JSRuntime) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_ExecutePendingJob (rt : * mut JSRuntime , pctx : * mut * mut JSContext) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_WriteObject (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int) -> * mut u8 ; } extern "C" { pub fn JS_WriteObject2 (ctx : * mut JSContext , psize : * mut usize , obj : JSValue , flags : :: std :: os :: raw :: c_int , psab_tab : * mut * mut * mut u8 , psab_tab_len : * mut usize) -> * mut u8 ; } extern "C" { pub fn JS_ReadObject (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_EvalFunction (ctx : * mut JSContext , fun_obj : JSValue) -> JSValue ; } extern "C" { pub fn JS_ResolveModule (ctx : * mut JSContext , obj : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_GetScriptOrModuleName (ctx : * mut JSContext , n_stack_levels : :: std :: os :: raw :: c_int) -> JSAtom ; } extern "C" { pub fn JS_LoadModule (ctx : * mut JSContext , basename : * const :: std :: os :: raw :: c_char , filename : * const :: std :: os :: raw :: c_char) -> JSValue ; } pub const JSCFunctionEnum_JS_CFUNC_generic : JSCFunctionEnum = 0 ; pub const JSCFunctionEnum_JS_CFUNC_generic_magic : JSCFunctionEnum = 1 ; pub const JSCFunctionEnum_JS_CFUNC_constructor : JSCFunctionEnum = 2 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_magic : JSCFunctionEnum = 3 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func : JSCFunctionEnum = 4 ; pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic : JSCFunctionEnum = 5 ; pub const JSCFunctionEnum_JS_CFUNC_f_f : JSCFunctionEnum = 6 ; pub const JSCFunctionEnum_JS_CFUNC_f_f_f : JSCFunctionEnum = 7 ; pub const JSCFunctionEnum_JS_CFUNC_getter : JSCFunctionEnum = 8 ; pub const JSCFunctionEnum_JS_CFUNC_setter : JSCFunctionEnum = 9 ; pub const JSCFunctionEnum_JS_CFUNC_getter_magic : JSCFunctionEnum = 10 ; pub const JSCFunctionEnum_JS_CFUNC_setter_magic : JSCFunctionEnum = 11 ; pub const JSCFunctionEnum_JS_CFUNC_iterator_next : JSCFunctionEnum = 12 ; pub type JSCFunctionEnum = :: std :: os :: raw :: c_uint ; # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionType { pub generic : JSCFunction , pub generic_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor : JSCFunction , pub constructor_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , new_target : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub constructor_or_func : JSCFunction , pub f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64) -> f64 > , pub f_f_f : :: std :: option :: Option < unsafe extern "C" fn (arg1 : f64 , arg2 : f64) -> f64 > , pub getter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue) -> JSValue > , pub setter : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue) -> JSValue > , pub getter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub setter_magic : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , val : JSValue , magic : :: std :: os :: raw :: c_int) -> JSValue > , pub iterator_next : :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , this_val : JSValue , argc : :: std :: os :: raw :: c_int , argv : * mut JSValue , pdone : * mut :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int) -> JSValue > , } # [test] fn bindgen_test_layout_JSCFunctionType () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionType > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionType > () , 8usize , concat ! ("Size of: " , stringify ! (JSCFunctionType))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionType > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionType))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . generic_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (generic_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . constructor_or_func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (constructor_or_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f_f_f) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (f_f_f))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (getter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . setter_magic) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (setter_magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . iterator_next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionType) , "::" , stringify ! (iterator_next))) ; } extern "C" { pub fn JS_NewCFunction2 (ctx : * mut JSContext , func : JSCFunction , name : * const :: std :: os :: raw :: c_char , length : :: std :: os :: raw :: c_int , cproto : JSCFunctionEnum , magic : :: std :: os :: raw :: c_int) -> JSValue ; } extern "C" { pub fn JS_NewCFunctionData (ctx : * mut JSContext , func : JSCFunctionData , length : :: std :: os :: raw :: c_int , magic : :: std :: os :: raw :: c_int , data_len : :: std :: os :: raw :: c_int , data : * mut JSValue) -> JSValue ; } extern "C" { pub fn JS_SetConstructor (ctx : * mut JSContext , func_obj : JSValue , proto : JSValue) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry { pub name : * const :: std :: os :: raw :: c_char , pub prop_flags : u8 , pub def_type : u8 , pub magic : i16 , pub u : JSCFunctionListEntry__bindgen_ty_1 , } # [repr (C)] # [derive (Copy , Clone)] pub union JSCFunctionListEntry__bindgen_ty_1 { pub func : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 , pub getset : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 , pub alias : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 , pub prop_list : JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 , pub str_ : * const :: std :: os :: raw :: c_char , pub i32_ : i32 , pub i64_ : i64 , pub f64_ : f64 , } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 { pub length : u8 , pub cproto : u8 , pub cfunc : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . length) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (length))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cproto) as usize - ptr as usize } , 1usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cproto))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . cfunc) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1) , "::" , stringify ! (cfunc))) ; } # [repr (C)] # [derive (Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 { pub get : JSCFunctionType , pub set : JSCFunctionType , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . get) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (get))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . set) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2) , "::" , stringify ! (set))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 { pub name : * const :: std :: os :: raw :: c_char , pub base : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . base) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3) , "::" , stringify ! (base))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 { pub tab : * const JSCFunctionListEntry , pub len : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tab) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (tab))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . len) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4) , "::" , stringify ! (len))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 16usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry__bindgen_ty_1 > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . func) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . getset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (getset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . alias) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (alias))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_list) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (prop_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . str_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (str_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i32_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i32_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . i64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (i64_))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . f64_) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry__bindgen_ty_1) , "::" , stringify ! (f64_))) ; } # [test] fn bindgen_test_layout_JSCFunctionListEntry () { const UNINIT : :: std :: mem :: MaybeUninit < JSCFunctionListEntry > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < JSCFunctionListEntry > () , 32usize , concat ! ("Size of: " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (:: std :: mem :: align_of :: < JSCFunctionListEntry > () , 8usize , concat ! ("Alignment of " , stringify ! (JSCFunctionListEntry))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . name) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (name))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . prop_flags) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (prop_flags))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . def_type) as usize - ptr as usize } , 9usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (def_type))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . magic) as usize - ptr as usize } , 10usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (magic))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . u) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (JSCFunctionListEntry) , "::" , stringify ! (u))) ; } extern "C" { pub fn JS_SetPropertyFunctionList (ctx : * mut JSContext , obj : JSValue , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) ; } pub type JSModuleInitFunc = :: std :: option :: Option < unsafe extern "C" fn (ctx : * mut JSContext , m : * mut JSModuleDef) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn JS_NewCModule (ctx : * mut JSContext , name_str : * const :: std :: os :: raw :: c_char , func : JSModuleInitFunc) -> * mut JSModuleDef ; } extern "C" { pub fn JS_AddModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , name_str : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_AddModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExport (ctx : * mut JSContext , m : * mut JSModuleDef , export_name : * const :: std :: os :: raw :: c_char , val : JSValue) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn JS_SetModuleExportList (ctx : * mut JSContext , m : * mut JSModuleDef , tab : * const JSCFunctionListEntry , len : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } pub type wchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct div_t { pub quot : :: std :: os :: raw :: c_int , pub rem : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_div_t () { const UNINIT : :: std :: mem :: MaybeUninit < div_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < div_t > () , 8usize , concat ! ("Size of: " , stringify ! (div_t))) ; assert_eq ! (:: std :: mem :: align_of :: < div_t > () , 4usize , concat ! ("Alignment of " , stringify ! (div_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (div_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct ldiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_ldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < ldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < ldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (ldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < ldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (ldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (ldiv_t) , "::" , stringify ! (rem))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct lldiv_t { pub quot : :: std :: os :: raw :: c_longlong , pub rem : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_lldiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < lldiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < lldiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (lldiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < lldiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (lldiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (lldiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn __ctype_get_mb_cur_max () -> usize ; } extern "C" { pub fn atof (__nptr : * const :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn atoi (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn atol (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn atoll (__nptr : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtod (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f64 ; } extern "C" { pub fn strtof (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> f32 ; } extern "C" { pub fn strtold (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char) -> u128 ; } extern "C" { pub fn strtol (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn strtoul (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulong ; } extern "C" { pub fn strtoq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtouq (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn strtoll (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn strtoull (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_ulonglong ; } extern "C" { pub fn l64a (__n : :: std :: os :: raw :: c_long) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn a64l (__s : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_long ; } pub type u_char = __u_char ; pub type u_short = __u_short ; pub type u_int = __u_int ; pub type u_long = __u_long ; pub type quad_t = __quad_t ; pub type u_quad_t = __u_quad_t ; pub type fsid_t = __fsid_t ; pub type loff_t = __loff_t ; pub type ino_t = __ino_t ; pub type dev_t = __dev_t ; pub type gid_t = __gid_t ; pub type mode_t = __mode_t ; pub type nlink_t = __nlink_t ; pub type uid_t = __uid_t ; pub type pid_t = __pid_t ; pub type id_t = __id_t ; pub type daddr_t = __daddr_t ; pub type caddr_t = __caddr_t ; pub type key_t = __key_t ; pub type clock_t = __clock_t ; pub type clockid_t = __clockid_t ; pub type time_t = __time_t ; pub type timer_t = __timer_t ; pub type ulong = :: std :: os :: raw :: c_ulong ; pub type ushort = :: std :: os :: raw :: c_ushort ; pub type uint = :: std :: os :: raw :: c_uint ; pub type u_int8_t = __uint8_t ; pub type u_int16_t = __uint16_t ; pub type u_int32_t = __uint32_t ; pub type u_int64_t = __uint64_t ; pub type register_t = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __sigset_t { pub __val : [:: std :: os :: raw :: c_ulong ; 16usize] , } # [test] fn bindgen_test_layout___sigset_t () { const UNINIT : :: std :: mem :: MaybeUninit < __sigset_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __sigset_t > () , 128usize , concat ! ("Size of: " , stringify ! (__sigset_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __sigset_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__sigset_t))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timeval { pub tv_sec : __time_t , pub tv_usec : __suseconds_t , } # [test] fn bindgen_test_layout_timeval () { const UNINIT : :: std :: mem :: MaybeUninit < timeval > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timeval > () , 16usize , concat ! ("Size of: " , stringify ! (timeval))) ; assert_eq ! (:: std :: mem :: align_of :: < timeval > () , 8usize , concat ! ("Alignment of " , stringify ! (timeval))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timeval) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: 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 , Copy , Clone)] pub struct timespec { pub tv_sec : __time_t , pub tv_nsec : __syscall_slong_t , } # [test] fn bindgen_test_layout_timespec () { const UNINIT : :: std :: mem :: MaybeUninit < timespec > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < timespec > () , 16usize , concat ! ("Size of: " , stringify ! (timespec))) ; assert_eq ! (:: std :: mem :: align_of :: < timespec > () , 8usize , concat ! ("Alignment of " , stringify ! (timespec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_sec) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_sec))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . tv_nsec) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (timespec) , "::" , stringify ! (tv_nsec))) ; } pub type suseconds_t = __suseconds_t ; pub type __fd_mask = :: std :: os :: raw :: c_long ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct fd_set { pub __fds_bits : [__fd_mask ; 16usize] , } # [test] fn bindgen_test_layout_fd_set () { const UNINIT : :: std :: mem :: MaybeUninit < fd_set > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < fd_set > () , 128usize , concat ! ("Size of: " , stringify ! (fd_set))) ; assert_eq ! (:: std :: mem :: align_of :: < fd_set > () , 8usize , concat ! ("Alignment of " , stringify ! (fd_set))) ; assert_eq ! (unsafe { :: std :: 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 ; extern "C" { pub fn select (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * mut timeval) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn pselect (__nfds : :: std :: os :: raw :: c_int , __readfds : * mut fd_set , __writefds : * mut fd_set , __exceptfds : * mut fd_set , __timeout : * const timespec , __sigmask : * const __sigset_t) -> :: std :: os :: raw :: c_int ; } pub type blksize_t = __blksize_t ; pub type blkcnt_t = __blkcnt_t ; pub type fsblkcnt_t = __fsblkcnt_t ; pub type fsfilcnt_t = __fsfilcnt_t ; # [repr (C)] # [derive (Copy , Clone)] pub union __atomic_wide_counter { pub __value64 : :: std :: os :: raw :: c_ulonglong , pub __value32 : __atomic_wide_counter__bindgen_ty_1 , } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __atomic_wide_counter__bindgen_ty_1 { pub __low : :: std :: os :: raw :: c_uint , pub __high : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 () { const UNINIT : :: std :: mem :: MaybeUninit < __atomic_wide_counter__bindgen_ty_1 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter__bindgen_ty_1 > () , 4usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter__bindgen_ty_1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 : :: std :: mem :: MaybeUninit < __atomic_wide_counter > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Size of: " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (:: std :: mem :: align_of :: < __atomic_wide_counter > () , 8usize , concat ! ("Alignment of " , stringify ! (__atomic_wide_counter))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value64) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __value32) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__atomic_wide_counter) , "::" , stringify ! (__value32))) ; } # [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 : :: std :: mem :: MaybeUninit < __pthread_internal_list > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_list > () , 16usize , concat ! ("Size of: " , stringify ! (__pthread_internal_list))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_list > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_list))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __prev) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__prev))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_list) , "::" , stringify ! (__next))) ; } 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 : :: std :: mem :: MaybeUninit < __pthread_internal_slist > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Size of: " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_internal_slist > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_internal_slist))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __next) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_internal_slist) , "::" , stringify ! (__next))) ; } pub type __pthread_slist_t = __pthread_internal_slist ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_mutex_s { pub __lock : :: std :: os :: raw :: c_int , pub __count : :: std :: os :: raw :: c_uint , pub __owner : :: std :: os :: raw :: c_int , pub __nusers : :: std :: os :: raw :: c_uint , pub __kind : :: std :: os :: raw :: c_int , pub __spins : :: std :: os :: raw :: c_short , pub __unused : :: std :: os :: raw :: c_short , pub __list : __pthread_list_t , } # [test] fn bindgen_test_layout___pthread_mutex_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_mutex_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_mutex_s > () , 40usize , concat ! ("Size of: " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_mutex_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_mutex_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __lock) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__lock))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __count) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__count))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __owner) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__owner))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __nusers) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__nusers))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __kind) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__kind))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __spins) as usize - ptr as usize } , 20usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__spins))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused) as usize - ptr as usize } , 22usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__unused))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __list) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_mutex_s) , "::" , stringify ! (__list))) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __pthread_rwlock_arch_t { pub __readers : :: std :: os :: raw :: c_uint , pub __writers : :: std :: os :: raw :: c_uint , pub __wrphase_futex : :: std :: os :: raw :: c_uint , pub __writers_futex : :: std :: os :: raw :: c_uint , pub __pad3 : :: std :: os :: raw :: c_uint , pub __pad4 : :: std :: os :: raw :: c_uint , pub __cur_writer : :: std :: os :: raw :: c_int , pub __shared : :: std :: os :: raw :: c_int , pub __pad1 : :: std :: os :: raw :: c_ulong , pub __pad2 : :: std :: os :: raw :: c_ulong , pub __flags : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_rwlock_arch_t () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_rwlock_arch_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_rwlock_arch_t > () , 56usize , concat ! ("Size of: " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_rwlock_arch_t > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_rwlock_arch_t))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __pad1) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_rwlock_arch_t) , "::" , stringify ! (__pad1))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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_size : [:: std :: os :: raw :: c_uint ; 2usize] , pub __g1_orig_size : :: std :: os :: raw :: c_uint , pub __wrefs : :: std :: os :: raw :: c_uint , pub __g_signals : [:: std :: os :: raw :: c_uint ; 2usize] , pub __unused_initialized_1 : :: std :: os :: raw :: c_uint , pub __unused_initialized_2 : :: std :: os :: raw :: c_uint , } # [test] fn bindgen_test_layout___pthread_cond_s () { const UNINIT : :: std :: mem :: MaybeUninit < __pthread_cond_s > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __pthread_cond_s > () , 48usize , concat ! ("Size of: " , stringify ! (__pthread_cond_s))) ; assert_eq ! (:: std :: mem :: align_of :: < __pthread_cond_s > () , 8usize , concat ! ("Alignment of " , stringify ! (__pthread_cond_s))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wseq) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wseq))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __g_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g1_orig_size) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g1_orig_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __wrefs) as usize - ptr as usize } , 28usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__wrefs))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __g_signals) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__g_signals))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_1) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_1))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __unused_initialized_2) as usize - ptr as usize } , 44usize , concat ! ("Offset of field: " , stringify ! (__pthread_cond_s) , "::" , stringify ! (__unused_initialized_2))) ; } pub type __tss_t = :: std :: os :: raw :: c_uint ; pub type __thrd_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __once_flag { pub __data : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout___once_flag () { const UNINIT : :: std :: mem :: MaybeUninit < __once_flag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __once_flag > () , 4usize , concat ! ("Size of: " , stringify ! (__once_flag))) ; assert_eq ! (:: std :: mem :: align_of :: < __once_flag > () , 4usize , concat ! ("Alignment of " , stringify ! (__once_flag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__once_flag) , "::" , stringify ! (__data))) ; } pub type pthread_t = :: std :: os :: raw :: c_ulong ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutexattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_mutexattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutexattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutexattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_mutexattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutexattr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_condattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_condattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_condattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_condattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_condattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_condattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_condattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_condattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_key_t = :: std :: os :: raw :: c_uint ; pub type pthread_once_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_attr_t { pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_attr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_attr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_attr_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_attr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_attr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_attr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_attr_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_mutex_t { pub __data : __pthread_mutex_s , pub __size : [:: std :: os :: raw :: c_char ; 40usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_mutex_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_mutex_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_mutex_t > () , 40usize , concat ! ("Size of: " , stringify ! (pthread_mutex_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_mutex_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_mutex_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_mutex_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_cond_t { pub __data : __pthread_cond_s , pub __size : [:: std :: os :: raw :: c_char ; 48usize] , pub __align : :: std :: os :: raw :: c_longlong , } # [test] fn bindgen_test_layout_pthread_cond_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_cond_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_cond_t > () , 48usize , concat ! ("Size of: " , stringify ! (pthread_cond_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_cond_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_cond_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_cond_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlock_t { pub __data : __pthread_rwlock_arch_t , pub __size : [:: std :: os :: raw :: c_char ; 56usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlock_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlock_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlock_t > () , 56usize , concat ! ("Size of: " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlock_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlock_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __data) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlock_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_rwlockattr_t { pub __size : [:: std :: os :: raw :: c_char ; 8usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_rwlockattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_rwlockattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Size of: " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_rwlockattr_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_rwlockattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_rwlockattr_t) , "::" , stringify ! (__align))) ; } pub type pthread_spinlock_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrier_t { pub __size : [:: std :: os :: raw :: c_char ; 32usize] , pub __align : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_pthread_barrier_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrier_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrier_t > () , 32usize , concat ! ("Size of: " , stringify ! (pthread_barrier_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrier_t > () , 8usize , concat ! ("Alignment of " , stringify ! (pthread_barrier_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrier_t) , "::" , stringify ! (__align))) ; } # [repr (C)] # [derive (Copy , Clone)] pub union pthread_barrierattr_t { pub __size : [:: std :: os :: raw :: c_char ; 4usize] , pub __align : :: std :: os :: raw :: c_int , } # [test] fn bindgen_test_layout_pthread_barrierattr_t () { const UNINIT : :: std :: mem :: MaybeUninit < pthread_barrierattr_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Size of: " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (:: std :: mem :: align_of :: < pthread_barrierattr_t > () , 4usize , concat ! ("Alignment of " , stringify ! (pthread_barrierattr_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __size) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __align) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (pthread_barrierattr_t) , "::" , stringify ! (__align))) ; } extern "C" { pub fn random () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srandom (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn initstate (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn setstate (__statebuf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct random_data { pub fptr : * mut i32 , pub rptr : * mut i32 , pub state : * mut i32 , pub rand_type : :: std :: os :: raw :: c_int , pub rand_deg : :: std :: os :: raw :: c_int , pub rand_sep : :: std :: os :: raw :: c_int , pub end_ptr : * mut i32 , } # [test] fn bindgen_test_layout_random_data () { const UNINIT : :: std :: mem :: MaybeUninit < random_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < random_data > () , 48usize , concat ! ("Size of: " , stringify ! (random_data))) ; assert_eq ! (:: std :: mem :: align_of :: < random_data > () , 8usize , concat ! ("Alignment of " , stringify ! (random_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fptr) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (fptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rptr) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (rptr))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . state) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (state))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: 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 { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . end_ptr) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (random_data) , "::" , stringify ! (end_ptr))) ; } extern "C" { pub fn random_r (__buf : * mut random_data , __result : * mut i32) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srandom_r (__seed : :: std :: os :: raw :: c_uint , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn initstate_r (__seed : :: std :: os :: raw :: c_uint , __statebuf : * mut :: std :: os :: raw :: c_char , __statelen : usize , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setstate_r (__statebuf : * mut :: std :: os :: raw :: c_char , __buf : * mut random_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rand () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand (__seed : :: std :: os :: raw :: c_uint) ; } extern "C" { pub fn rand_r (__seed : * mut :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn drand48 () -> f64 ; } extern "C" { pub fn erand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> f64 ; } extern "C" { pub fn lrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn nrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn mrand48 () -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn jrand48 (__xsubi : * mut :: std :: os :: raw :: c_ushort) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn srand48 (__seedval : :: std :: os :: raw :: c_long) ; } extern "C" { pub fn seed48 (__seed16v : * mut :: std :: os :: raw :: c_ushort) -> * mut :: std :: os :: raw :: c_ushort ; } extern "C" { pub fn lcong48 (__param : * mut :: std :: os :: raw :: c_ushort) ; } # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct drand48_data { pub __x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __old_x : [:: std :: os :: raw :: c_ushort ; 3usize] , pub __c : :: std :: os :: raw :: c_ushort , pub __init : :: std :: os :: raw :: c_ushort , pub __a : :: std :: os :: raw :: c_ulonglong , } # [test] fn bindgen_test_layout_drand48_data () { const UNINIT : :: std :: mem :: MaybeUninit < drand48_data > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < drand48_data > () , 24usize , concat ! ("Size of: " , stringify ! (drand48_data))) ; assert_eq ! (:: std :: mem :: align_of :: < drand48_data > () , 8usize , concat ! ("Alignment of " , stringify ! (drand48_data))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __x) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__x))) ; assert_eq ! (unsafe { :: std :: 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 { :: std :: ptr :: addr_of ! ((* ptr) . __c) as usize - ptr as usize } , 12usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__c))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __init) as usize - ptr as usize } , 14usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__init))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . __a) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (drand48_data) , "::" , stringify ! (__a))) ; } extern "C" { pub fn drand48_r (__buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn erand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut f64) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn nrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mrand48_r (__buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn jrand48_r (__xsubi : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data , __result : * mut :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn srand48_r (__seedval : :: std :: os :: raw :: c_long , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn seed48_r (__seed16v : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn lcong48_r (__param : * mut :: std :: os :: raw :: c_ushort , __buffer : * mut drand48_data) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn arc4random () -> __uint32_t ; } extern "C" { pub fn arc4random_buf (__buf : * mut :: std :: os :: raw :: c_void , __size : usize) ; } extern "C" { pub fn arc4random_uniform (__upper_bound : __uint32_t) -> __uint32_t ; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn calloc (__nmemb : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn free (__ptr : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn reallocarray (__ptr : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn alloca (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn valloc (__size : usize) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn posix_memalign (__memptr : * mut * mut :: std :: os :: raw :: c_void , __alignment : usize , __size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn aligned_alloc (__alignment : :: std :: os :: raw :: c_ulong , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn abort () -> ! ; } extern "C" { pub fn atexit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn at_quick_exit (__func : :: std :: option :: Option < unsafe extern "C" fn () >) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn on_exit (__func : :: std :: option :: Option < unsafe extern "C" fn (__status : :: std :: os :: raw :: c_int , __arg : * mut :: std :: os :: raw :: c_void) > , __arg : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn quick_exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn _Exit (__status : :: std :: os :: raw :: c_int) -> ! ; } extern "C" { pub fn getenv (__name : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn putenv (__string : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setenv (__name : * const :: std :: os :: raw :: c_char , __value : * const :: std :: os :: raw :: c_char , __replace : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unsetenv (__name : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn clearenv () -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mktemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn mkstemp (__template : * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkstemps (__template : * mut :: std :: os :: raw :: c_char , __suffixlen : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mkdtemp (__template : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn system (__command : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn realpath (__name : * const :: std :: os :: raw :: c_char , __resolved : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } pub type __compar_fn_t = :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > ; extern "C" { pub fn bsearch (__key : * const :: std :: os :: raw :: c_void , __base : * const :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn qsort (__base : * mut :: std :: os :: raw :: c_void , __nmemb : usize , __size : usize , __compar : __compar_fn_t) ; } extern "C" { pub fn abs (__x : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn labs (__x : :: std :: os :: raw :: c_long) -> :: std :: os :: raw :: c_long ; } extern "C" { pub fn llabs (__x : :: std :: os :: raw :: c_longlong) -> :: std :: os :: raw :: c_longlong ; } extern "C" { pub fn div (__numer : :: std :: os :: raw :: c_int , __denom : :: std :: os :: raw :: c_int) -> div_t ; } extern "C" { pub fn ldiv (__numer : :: std :: os :: raw :: c_long , __denom : :: std :: os :: raw :: c_long) -> ldiv_t ; } extern "C" { pub fn lldiv (__numer : :: std :: os :: raw :: c_longlong , __denom : :: std :: os :: raw :: c_longlong) -> lldiv_t ; } extern "C" { pub fn ecvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn fcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn gcvt (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qecvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qfcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn qgcvt (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn ecvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn fcvt_r (__value : f64 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qecvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn qfcvt_r (__value : u128 , __ndigit : :: std :: os :: raw :: c_int , __decpt : * mut :: std :: os :: raw :: c_int , __sign : * mut :: std :: os :: raw :: c_int , __buf : * mut :: std :: os :: raw :: c_char , __len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mblen (__s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbtowc (__pwc : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn wctomb (__s : * mut :: std :: os :: raw :: c_char , __wchar : wchar_t) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn mbstowcs (__pwcs : * mut wchar_t , __s : * const :: std :: os :: raw :: c_char , __n : usize) -> usize ; } extern "C" { pub fn wcstombs (__s : * mut :: std :: os :: raw :: c_char , __pwcs : * const wchar_t , __n : usize) -> usize ; } extern "C" { pub fn rpmatch (__response : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getsubopt (__optionp : * mut * mut :: std :: os :: raw :: c_char , __tokens : * const * mut :: std :: os :: raw :: c_char , __valuep : * mut * mut :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn getloadavg (__loadavg : * mut f64 , __nelem : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_init_module_std (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_init_module_os (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_add_helpers (ctx : * mut JSContext , argc : :: std :: os :: raw :: c_int , argv : * mut * mut :: std :: os :: raw :: c_char) ; } extern "C" { pub fn js_std_loop (ctx : * mut JSContext) ; } extern "C" { pub fn js_std_init_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_free_handlers (rt : * mut JSRuntime) ; } extern "C" { pub fn js_std_dump_error (ctx : * mut JSContext) ; } extern "C" { pub fn js_load_file (ctx : * mut JSContext , pbuf_len : * mut usize , filename : * const :: std :: os :: raw :: c_char) -> * mut u8 ; } extern "C" { pub fn js_module_set_import_meta (ctx : * mut JSContext , func_val : JSValue , use_realpath : :: std :: os :: raw :: c_int , is_main : :: std :: os :: raw :: c_int) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn js_module_loader (ctx : * mut JSContext , module_name : * const :: std :: os :: raw :: c_char , opaque : * mut :: std :: os :: raw :: c_void) -> * mut JSModuleDef ; } extern "C" { pub fn js_std_eval_binary (ctx : * mut JSContext , buf : * const u8 , buf_len : usize , flags : :: std :: os :: raw :: c_int) ; } extern "C" { pub fn js_std_promise_rejection_tracker (ctx : * mut JSContext , promise : JSValue , reason : JSValue , is_handled : :: std :: os :: raw :: c_int , opaque : * mut :: std :: os :: raw :: c_void) ; } extern "C" { pub fn js_std_set_worker_new_context_func (func : :: std :: option :: Option < unsafe extern "C" fn (rt : * mut JSRuntime) -> * mut JSContext >) ; } pub type __gwchar_t = :: std :: os :: raw :: c_int ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct imaxdiv_t { pub quot : :: std :: os :: raw :: c_long , pub rem : :: std :: os :: raw :: c_long , } # [test] fn bindgen_test_layout_imaxdiv_t () { const UNINIT : :: std :: mem :: MaybeUninit < imaxdiv_t > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < imaxdiv_t > () , 16usize , concat ! ("Size of: " , stringify ! (imaxdiv_t))) ; assert_eq ! (:: std :: mem :: align_of :: < imaxdiv_t > () , 8usize , concat ! ("Alignment of " , stringify ! (imaxdiv_t))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . quot) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (quot))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . rem) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (imaxdiv_t) , "::" , stringify ! (rem))) ; } extern "C" { pub fn imaxabs (__n : intmax_t) -> intmax_t ; } extern "C" { pub fn imaxdiv (__numer : intmax_t , __denom : intmax_t) -> imaxdiv_t ; } extern "C" { pub fn strtoimax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn strtoumax (__nptr : * const :: std :: os :: raw :: c_char , __endptr : * mut * mut :: std :: os :: raw :: c_char , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } extern "C" { pub fn wcstoimax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> intmax_t ; } extern "C" { pub fn wcstoumax (__nptr : * const __gwchar_t , __endptr : * mut * mut __gwchar_t , __base : :: std :: os :: raw :: c_int) -> uintmax_t ; } pub type BOOL = :: std :: os :: raw :: c_int ; pub const FALSE : _bindgen_ty_2 = 0 ; pub const TRUE : _bindgen_ty_2 = 1 ; pub type _bindgen_ty_2 = :: std :: os :: raw :: c_uint ; extern "C" { pub fn pstrcpy (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , str_ : * const :: std :: os :: raw :: c_char) ; } extern "C" { pub fn pstrcat (buf : * mut :: std :: os :: raw :: c_char , buf_size : :: std :: os :: raw :: c_int , s : * const :: std :: os :: raw :: c_char) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn strstart (str_ : * const :: std :: os :: raw :: c_char , val : * const :: std :: os :: raw :: c_char , ptr : * mut * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn has_suffix (str_ : * const :: std :: os :: raw :: c_char , suffix : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u64 { pub v : u64 , } # [test] fn bindgen_test_layout_packed_u64 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u64 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u64 > () , 8usize , concat ! ("Size of: " , stringify ! (packed_u64))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u64 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u64))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u64) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u32 { pub v : u32 , } # [test] fn bindgen_test_layout_packed_u32 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u32 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u32 > () , 4usize , concat ! ("Size of: " , stringify ! (packed_u32))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u32 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u32))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u32) , "::" , stringify ! (v))) ; } # [repr (C , packed)] # [derive (Debug , Copy , Clone)] pub struct packed_u16 { pub v : u16 , } # [test] fn bindgen_test_layout_packed_u16 () { const UNINIT : :: std :: mem :: MaybeUninit < packed_u16 > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < packed_u16 > () , 2usize , concat ! ("Size of: " , stringify ! (packed_u16))) ; assert_eq ! (:: std :: mem :: align_of :: < packed_u16 > () , 1usize , concat ! ("Alignment of " , stringify ! (packed_u16))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . v) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (packed_u16) , "::" , stringify ! (v))) ; } pub type DynBufReallocFunc = :: std :: option :: Option < unsafe extern "C" fn (opaque : * mut :: std :: os :: raw :: c_void , ptr : * mut :: std :: os :: raw :: c_void , size : usize) -> * mut :: std :: os :: raw :: c_void > ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct DynBuf { pub buf : * mut u8 , pub size : usize , pub allocated_size : usize , pub error : BOOL , pub realloc_func : DynBufReallocFunc , pub opaque : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout_DynBuf () { const UNINIT : :: std :: mem :: MaybeUninit < DynBuf > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < DynBuf > () , 48usize , concat ! ("Size of: " , stringify ! (DynBuf))) ; assert_eq ! (:: std :: mem :: align_of :: < DynBuf > () , 8usize , concat ! ("Alignment of " , stringify ! (DynBuf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . buf) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (buf))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . size) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . allocated_size) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (allocated_size))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . error) as usize - ptr as usize } , 24usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (error))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . realloc_func) as usize - ptr as usize } , 32usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (realloc_func))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . opaque) as usize - ptr as usize } , 40usize , concat ! ("Offset of field: " , stringify ! (DynBuf) , "::" , stringify ! (opaque))) ; } extern "C" { pub fn dbuf_init (s : * mut DynBuf) ; } extern "C" { pub fn dbuf_init2 (s : * mut DynBuf , opaque : * mut :: std :: os :: raw :: c_void , realloc_func : DynBufReallocFunc) ; } extern "C" { pub fn dbuf_realloc (s : * mut DynBuf , new_size : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_write (s : * mut DynBuf , offset : usize , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put (s : * mut DynBuf , data : * const u8 , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_put_self (s : * mut DynBuf , offset : usize , len : usize) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putc (s : * mut DynBuf , c : u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_putstr (s : * mut DynBuf , str_ : * const :: std :: os :: raw :: c_char) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_printf (s : * mut DynBuf , fmt : * const :: std :: os :: raw :: c_char , ...) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn dbuf_free (s : * mut DynBuf) ; } extern "C" { pub fn unicode_to_utf8 (buf : * mut u8 , c : :: std :: os :: raw :: c_uint) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn unicode_from_utf8 (p : * const u8 , max_len : :: std :: os :: raw :: c_int , pp : * mut * const u8) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn rqsort (base : * mut :: std :: os :: raw :: c_void , nmemb : usize , size : usize , cmp : :: std :: option :: Option < unsafe extern "C" fn (arg1 : * const :: std :: os :: raw :: c_void , arg2 : * const :: std :: os :: raw :: c_void , arg3 : * mut :: std :: os :: raw :: c_void) -> :: std :: os :: raw :: c_int > , arg : * mut :: std :: os :: raw :: c_void) ; } pub type __builtin_va_list = [__va_list_tag ; 1usize] ; # [repr (C)] # [derive (Debug , Copy , Clone)] pub struct __va_list_tag { pub gp_offset : :: std :: os :: raw :: c_uint , pub fp_offset : :: std :: os :: raw :: c_uint , pub overflow_arg_area : * mut :: std :: os :: raw :: c_void , pub reg_save_area : * mut :: std :: os :: raw :: c_void , } # [test] fn bindgen_test_layout___va_list_tag () { const UNINIT : :: std :: mem :: MaybeUninit < __va_list_tag > = :: std :: mem :: MaybeUninit :: uninit () ; let ptr = UNINIT . as_ptr () ; assert_eq ! (:: std :: mem :: size_of :: < __va_list_tag > () , 24usize , concat ! ("Size of: " , stringify ! (__va_list_tag))) ; assert_eq ! (:: std :: mem :: align_of :: < __va_list_tag > () , 8usize , concat ! ("Alignment of " , stringify ! (__va_list_tag))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . gp_offset) as usize - ptr as usize } , 0usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (gp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . fp_offset) as usize - ptr as usize } , 4usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (fp_offset))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . overflow_arg_area) as usize - ptr as usize } , 8usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (overflow_arg_area))) ; assert_eq ! (unsafe { :: std :: ptr :: addr_of ! ((* ptr) . reg_save_area) as usize - ptr as usize } , 16usize , concat ! ("Offset of field: " , stringify ! (__va_list_tag) , "::" , stringify ! (reg_save_area))) ; }
[INFO] [stderr]   |
[INFO] [stderr] 
[INFO] [stderr] warning: suspicious definition of the runtime `malloc` symbol used by the standard library
[INFO] [stderr]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:161605
[INFO] [stderr]   |
[INFO] [stderr] 3 | ...; } extern "C" { pub fn malloc (__size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { p...
[INFO] [stderr]   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: expected `unsafe extern "C" fn(usize) -> *mut c_void` (for the current target)
[INFO] [stderr]           found    `unsafe extern "C" fn(u64) -> *mut c_void`
[INFO] [stderr]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "malloc")]`, or `#[link_name = "malloc"]`
[INFO] [stderr]   = help: allow this lint if the signature is compatible
[INFO] [stderr]   = note: `#[warn(suspicious_runtime_symbol_definitions)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: suspicious definition of the runtime `realloc` symbol used by the standard library
[INFO] [stderr]  --> /opt/rustwide/target/debug/build/rusty_quickjs_sys/635b7db2ea20be98/out/quickjs_bindings.rs:3:161872
[INFO] [stderr]   |
[INFO] [stderr] 3 | ... { pub fn realloc (__ptr : * mut :: std :: os :: raw :: c_void , __size : :: std :: os :: raw :: c_ulong) -> * mut :: std :: os :: raw :: c_void ; } ...
[INFO] [stderr]   |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: expected `unsafe extern "C" fn(*mut c_void, usize) -> *mut c_void` (for the current target)
[INFO] [stderr]           found    `unsafe extern "C" fn(*mut c_void, u64) -> *mut c_void`
[INFO] [stderr]   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "realloc")]`, or `#[link_name = "realloc"]`
[INFO] [stderr]   = help: allow this lint if the signature is compatible
[INFO] [stderr] 
[INFO] [stderr] warning: `rusty_quickjs_sys` (lib) generated 6 warnings (run `cargo fix --lib -p rusty_quickjs_sys` to apply 3 suggestions)
[INFO] [stderr] warning: `rusty_quickjs_sys` (lib test) generated 6 warnings (6 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/build/rusty_quickjs_sys/a4984800e19c8b92/out/rusty_quickjs_sys-a4984800e19c8b92)
[INFO] [stdout] 
[INFO] [stdout] running 57 tests
[INFO] [stdout] test bindgen_test_layout_DynBuf ... ok
[INFO] [stdout] test bindgen_test_layout_JSCFunctionType ... ok
[INFO] [stdout] test bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 ... ok
[INFO] [stdout] test bindgen_test_layout_JSClassExoticMethods ... ok
[INFO] [stdout] test bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 ... ok
[INFO] [stdout] test bindgen_test_layout__G_fpos64_t ... ok
[INFO] [stdout] test bindgen_test_layout_JSMallocFunctions ... ok
[INFO] [stdout] test bindgen_test_layout__G_fpos_t ... ok
[INFO] [stdout] test bindgen_test_layout__IO_cookie_io_functions_t ... ok
[INFO] [stdout] test bindgen_test_layout___atomic_wide_counter ... ok
[INFO] [stdout] test bindgen_test_layout___atomic_wide_counter__bindgen_ty_1 ... ok
[INFO] [stdout] test bindgen_test_layout___fsid_t ... ok
[INFO] [stdout] test bindgen_test_layout__IO_FILE ... ok
[INFO] [stdout] test bindgen_test_layout_JSClassDef ... ok
[INFO] [stdout] test bindgen_test_layout_JSPropertyDescriptor ... ok
[INFO] [stdout] test bindgen_test_layout_JSRefCountHeader ... ok
[INFO] [stdout] test bindgen_test_layout_JSValueUnion ... ok
[INFO] [stdout] test bindgen_test_layout_JSSharedArrayBufferFunctions ... ok
[INFO] [stdout] test bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 ... ok
[INFO] [stdout] test bindgen_test_layout_JSPropertyEnum ... ok
[INFO] [stdout] test bindgen_test_layout_JSValue ... ok
[INFO] [stdout] test bindgen_test_layout_JSMemoryUsage ... ok
[INFO] [stdout] test bindgen_test_layout___mbstate_t__bindgen_ty_1 ... ok
[INFO] [stdout] test bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 ... ok
[INFO] [stdout] test bindgen_test_layout_div_t ... ok
[INFO] [stdout] test bindgen_test_layout_drand48_data ... ok
[INFO] [stdout] test bindgen_test_layout_imaxdiv_t ... ok
[INFO] [stdout] test bindgen_test_layout_fd_set ... ok
[INFO] [stdout] test bindgen_test_layout___sigset_t ... ok
[INFO] [stdout] test bindgen_test_layout___va_list_tag ... ok
[INFO] [stdout] test bindgen_test_layout___mbstate_t ... ok
[INFO] [stdout] test bindgen_test_layout___once_flag ... ok
[INFO] [stdout] test bindgen_test_layout___pthread_cond_s ... ok
[INFO] [stdout] test bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1 ... ok
[INFO] [stdout] test bindgen_test_layout___pthread_mutex_s ... ok
[INFO] [stdout] test bindgen_test_layout___pthread_internal_slist ... ok
[INFO] [stdout] test bindgen_test_layout_JSCFunctionListEntry ... ok
[INFO] [stdout] test bindgen_test_layout___pthread_rwlock_arch_t ... ok
[INFO] [stdout] test bindgen_test_layout___pthread_internal_list ... ok
[INFO] [stdout] test bindgen_test_layout_ldiv_t ... ok
[INFO] [stdout] test bindgen_test_layout_packed_u16 ... ok
[INFO] [stdout] test bindgen_test_layout_packed_u32 ... ok
[INFO] [stdout] test bindgen_test_layout_packed_u64 ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_barrier_t ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_barrierattr_t ... ok
[INFO] [stdout] test bindgen_test_layout_timeval ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_mutex_t ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_rwlock_t ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_cond_t ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_mutexattr_t ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_attr_t ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_condattr_t ... ok
[INFO] [stdout] test bindgen_test_layout_timespec ... ok
[INFO] [stdout] test bindgen_test_layout_random_data ... ok
[INFO] [stdout] test bindgen_test_layout_lldiv_t ... ok
[INFO] [stdout] test bindgen_test_layout_pthread_rwlockattr_t ... ok
[INFO] [stdout] test bindgen_test_layout_JSMallocState ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 57 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/general.rs (/opt/rustwide/target/debug/build/rusty_quickjs_sys/51d71dda1b1c5977/out/general-51d71dda1b1c5977)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stderr]    Doc-tests rusty_quickjs_sys
[INFO] [stdout] test test_general ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] Hello world!
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae", kill_on_drop: false }`
[INFO] [stdout] f090ce8788633a046520d9ad5bd6001b027dff959be219b00b716d9cd4e89dae
