diff --git a/Cargo.lock b/Cargo.lock index 080062e4b5..dcecbaa4f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -357,7 +357,7 @@ dependencies = [ [[package]] name = "cargo-pgrx" -version = "0.12.9" +version = "0.13.0" dependencies = [ "bzip2", "cargo-edit", @@ -1785,7 +1785,7 @@ dependencies = [ [[package]] name = "pgrx" -version = "0.12.9" +version = "0.13.0" dependencies = [ "atomic-traits", "bitflags 2.8.0", @@ -1807,7 +1807,7 @@ dependencies = [ [[package]] name = "pgrx-bindgen" -version = "0.12.9" +version = "0.13.0" dependencies = [ "bindgen", "cc", @@ -1823,7 +1823,7 @@ dependencies = [ [[package]] name = "pgrx-macros" -version = "0.12.9" +version = "0.13.0" dependencies = [ "pgrx-sql-entity-graph", "proc-macro2", @@ -1834,7 +1834,7 @@ dependencies = [ [[package]] name = "pgrx-pg-config" -version = "0.12.9" +version = "0.13.0" dependencies = [ "cargo_toml", "eyre", @@ -1850,7 +1850,7 @@ dependencies = [ [[package]] name = "pgrx-pg-sys" -version = "0.12.9" +version = "0.13.0" dependencies = [ "cee-scape", "libc", @@ -1863,7 +1863,7 @@ dependencies = [ [[package]] name = "pgrx-sql-entity-graph" -version = "0.12.9" +version = "0.13.0" dependencies = [ "convert_case", "eyre", @@ -1879,7 +1879,7 @@ dependencies = [ [[package]] name = "pgrx-tests" -version = "0.12.9" +version = "0.13.0" dependencies = [ "clap-cargo 0.14.1", "eyre", diff --git a/Cargo.toml b/Cargo.toml index 4931582073..b2e215a2dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,11 +55,11 @@ exclude = [ cargo-pgrx = { path = "cargo-pgrx" } [workspace.dependencies] -pgrx-macros = { path = "./pgrx-macros", version = "=0.12.9" } -pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.12.9" } -pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.12.9" } -pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.12.9" } -pgrx-bindgen = { path = "./pgrx-bindgen", version = "=0.12.9" } +pgrx-macros = { path = "./pgrx-macros", version = "=0.13.0" } +pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.13.0" } +pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.13.0" } +pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.13.0" } +pgrx-bindgen = { path = "./pgrx-bindgen", version = "=0.13.0" } cargo_metadata = "0.18.0" cargo-edit = "0.13.1" # format-preserving edits to cargo.toml diff --git a/cargo-pgrx/Cargo.toml b/cargo-pgrx/Cargo.toml index 23f617b232..d39342068e 100644 --- a/cargo-pgrx/Cargo.toml +++ b/cargo-pgrx/Cargo.toml @@ -10,7 +10,7 @@ [package] name = "cargo-pgrx" -version = "0.12.9" +version = "0.13.0" authors = ["PgCentral Foundation, Inc. "] license = "MIT" description = "Cargo subcommand for 'pgrx' to make Postgres extension development easy" diff --git a/cargo-pgrx/src/templates/cargo_toml b/cargo-pgrx/src/templates/cargo_toml index 2d8b8a47e4..8ff5a33474 100644 --- a/cargo-pgrx/src/templates/cargo_toml +++ b/cargo-pgrx/src/templates/cargo_toml @@ -21,10 +21,10 @@ pg17 = ["pgrx/pg17", "pgrx-tests/pg17" ] pg_test = [] [dependencies] -pgrx = "=0.12.9" +pgrx = "=0.13.0" [dev-dependencies] -pgrx-tests = "=0.12.9" +pgrx-tests = "=0.13.0" [profile.dev] panic = "unwind" diff --git a/pgrx-bindgen/Cargo.toml b/pgrx-bindgen/Cargo.toml index decf8da765..67ea45b514 100644 --- a/pgrx-bindgen/Cargo.toml +++ b/pgrx-bindgen/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pgrx-bindgen" description = "additional bindgen support for pgrx" -version = "0.12.9" +version = "0.13.0" edition = "2021" license = "MIT" homepage = "https://github.com/pgcentralfoundation/pgrx" diff --git a/pgrx-macros/Cargo.toml b/pgrx-macros/Cargo.toml index 3f09fe0288..aa554196a3 100644 --- a/pgrx-macros/Cargo.toml +++ b/pgrx-macros/Cargo.toml @@ -10,7 +10,7 @@ [package] name = "pgrx-macros" -version = "0.12.9" +version = "0.13.0" authors = ["PgCentral Foundation, Inc. "] license = "MIT" description = "Proc Macros for 'pgrx'" diff --git a/pgrx-pg-config/Cargo.toml b/pgrx-pg-config/Cargo.toml index 5487b4aca4..36d2c69b49 100644 --- a/pgrx-pg-config/Cargo.toml +++ b/pgrx-pg-config/Cargo.toml @@ -10,7 +10,7 @@ [package] name = "pgrx-pg-config" -version = "0.12.9" +version = "0.13.0" authors = ["PgCentral Foundation, Inc. "] license = "MIT" description = "A Postgres pg_config wrapper for 'pgrx'" diff --git a/pgrx-pg-sys/Cargo.toml b/pgrx-pg-sys/Cargo.toml index 7b27df2ff2..0df4274434 100644 --- a/pgrx-pg-sys/Cargo.toml +++ b/pgrx-pg-sys/Cargo.toml @@ -10,7 +10,7 @@ [package] name = "pgrx-pg-sys" -version = "0.12.9" +version = "0.13.0" authors = ["PgCentral Foundation, Inc. "] license = "MIT" description = "Generated Rust bindings for Postgres internals, for use with 'pgrx'" diff --git a/pgrx-pg-sys/src/include/pg12.rs b/pgrx-pg-sys/src/include/pg12.rs index 3e2787b093..4144dc91d6 100644 --- a/pgrx-pg-sys/src/include/pg12.rs +++ b/pgrx-pg-sys/src/include/pg12.rs @@ -22,28 +22,51 @@ 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]; + fn extract_bit(byte: u8, index: usize) -> bool { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } #[inline] - pub fn set_bit(&mut self, index: usize, val: bool) { + pub fn get_bit(&self, index: usize) -> 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 byte = self.storage.as_ref()[byte_index]; + Self::extract_bit(byte, index) + } + #[inline] + pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); + Self::extract_bit(byte, index) + } + #[inline] + fn change_bit(byte: u8, index: usize, val: bool) -> u8 { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { - *byte |= mask; + byte | mask } else { - *byte &= !mask; + byte & !mask } } #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + *byte = Self::change_bit(*byte, index, val); + } + #[inline] + pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); + *byte = Self::change_bit(*byte, index, val); + } + #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -59,6 +82,21 @@ where val } #[inline] + pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if Self::raw_get_bit(this, i + bit_offset) { + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + val |= 1 << index; + } + } + val + } + #[inline] pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -70,6 +108,18 @@ where self.set_bit(index + bit_offset, val_bit_is_set); } } + #[inline] + pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); + } + } } #[repr(C)] #[derive(Default)] @@ -126,48 +176,22 @@ pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; pub const DEF_PGPORT: u32 = 28812; -#[allow(unsafe_code)] -pub const DEF_PGPORT_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"28812\0") }; +pub const DEF_PGPORT_STR: &::core::ffi::CStr = c"28812"; pub const ENABLE_THREAD_SAFETY: u32 = 1; -#[allow(unsafe_code)] -pub const INT64_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; +pub const INT64_MODIFIER: &::core::ffi::CStr = c"l"; pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; -#[allow(unsafe_code)] -pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql-bugs@lists.postgresql.org\0") -}; -#[allow(unsafe_code)] -pub const PACKAGE_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL 12.22\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_TARNAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_URL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"12.22\0") }; -#[allow(unsafe_code)] -pub const PG_KRB_SRVNAM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres\0") }; -#[allow(unsafe_code)] -pub const PG_MAJORVERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"12\0") }; -#[allow(unsafe_code)] -pub const PG_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"12.22\0") }; +pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = c"pgsql-bugs@lists.postgresql.org"; +pub const PACKAGE_NAME: &::core::ffi::CStr = c"PostgreSQL"; +pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 12.22"; +pub const PACKAGE_TARNAME: &::core::ffi::CStr = c"postgresql"; +pub const PACKAGE_URL: &::core::ffi::CStr = c""; +pub const PACKAGE_VERSION: &::core::ffi::CStr = c"12.22"; +pub const PG_KRB_SRVNAM: &::core::ffi::CStr = c"postgres"; +pub const PG_MAJORVERSION: &::core::ffi::CStr = c"12"; +pub const PG_VERSION: &::core::ffi::CStr = c"12.22"; pub const PG_VERSION_NUM: u32 = 120022; -#[allow(unsafe_code)] -pub const PG_VERSION_STR: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"PostgreSQL 12.22 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0") -}; +pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 12.22 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -198,352 +222,16 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -#[allow(unsafe_code)] -pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -#[allow(unsafe_code)] -pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = c"/tmp"; +pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = c"PostgreSQL"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -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 = 35; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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_C2X: 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_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: 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 _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; -#[allow(unsafe_code)] -pub const P_tmpdir: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -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 __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 __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -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 __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 __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 __PTHREAD_MUTEX_HAVE_PREV: 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 EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; -pub const __bool_true_false_are_defined: u32 = 1; -pub const true_: u32 = 1; -pub const false_: u32 = 0; +pub const SIG_ATOMIC_WIDTH: u32 = 32; pub const USE_STDBOOL: u32 = 1; -#[allow(unsafe_code)] -pub const INT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%ld\0") }; -#[allow(unsafe_code)] -pub const UINT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%lu\0") }; +pub const INT64_FORMAT: &::core::ffi::CStr = c"%ld"; +pub const UINT64_FORMAT: &::core::ffi::CStr = c"%lu"; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; pub const PG_UINT8_MAX: u32 = 255; @@ -562,453 +250,16 @@ pub const STATUS_EOF: i32 = -2; pub const STATUS_FOUND: u32 = 1; pub const STATUS_WAITING: u32 = 2; pub const PG_BINARY: u32 = 0; -#[allow(unsafe_code)] -pub const PG_BINARY_A: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"a\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_R: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"r\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_W: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"w\0") }; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INET_ADDRSTRLEN: u32 = 16; -pub const INET6_ADDRSTRLEN: u32 = 46; -#[allow(unsafe_code)] -pub const _PATH_HEQUIV: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts.equiv\0") }; -#[allow(unsafe_code)] -pub const _PATH_HOSTS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts\0") }; -#[allow(unsafe_code)] -pub const _PATH_NETWORKS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/networks\0") }; -#[allow(unsafe_code)] -pub const _PATH_NSSWITCH_CONF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/nsswitch.conf\0") }; -#[allow(unsafe_code)] -pub const _PATH_PROTOCOLS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/protocols\0") }; -#[allow(unsafe_code)] -pub const _PATH_SERVICES: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/services\0") }; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const NSS_BUFLEN_PASSWD: u32 = 1024; +pub const PG_BINARY_A: &::core::ffi::CStr = c"a"; +pub const PG_BINARY_R: &::core::ffi::CStr = c"r"; +pub const PG_BINARY_W: &::core::ffi::CStr = c"w"; pub const PGINVALID_SOCKET: i32 = -1; -#[allow(unsafe_code)] -pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres (PostgreSQL) 12.22\n\0") }; -#[allow(unsafe_code)] -pub const EXE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const DEVNULL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/dev/null\0") }; +pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 12.22\n"; +pub const EXE: &::core::ffi::CStr = c""; +pub const DEVNULL: &::core::ffi::CStr = c"/dev/null"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -1020,7 +271,6 @@ pub const COMMERROR: u32 = 16; pub const INFO: u32 = 17; pub const NOTICE: u32 = 18; pub const WARNING: u32 = 19; -pub const ERROR: u32 = 20; pub const FATAL: u32 = 21; pub const PANIC: u32 = 22; pub const LOG_DESTINATION_STDERR: u32 = 1; @@ -1038,9 +288,7 @@ pub const FLOAT4PASSBYVAL: u32 = 1; pub const FLOAT8PASSBYVAL: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -#[allow(unsafe_code)] -pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Pg_magic_func\0") }; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = c"Pg_magic_func"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const InvalidAttrNumber: u32 = 0; @@ -1095,131 +343,8 @@ pub const MaxTransactionIdAttributeNumber: i32 = -4; pub const MaxCommandIdAttributeNumber: i32 = -5; pub const TableOidAttributeNumber: i32 = -6; pub const FirstLowInvalidHeapAttributeNumber: i32 = -7; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; -pub const PG_O_DIRECT: u32 = 0; +pub const PG_O_DIRECT: u32 = 16384; pub const OPEN_SYNC_FLAG: u32 = 1052672; pub const OPEN_DATASYNC_FLAG: u32 = 4096; pub const FirstGenbkiObjectId: u32 = 10000; @@ -1285,21 +410,6 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const PARAM_FLAG_CONST: u32 = 1; pub const BTLessStrategyNumber: u32 = 1; @@ -1359,82 +469,15 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; pub const NO_MAX_DSIZE: i32 = -1; -pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const MAXNAMLEN: u32 = 255; -#[allow(unsafe_code)] -pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; -#[allow(unsafe_code)] -pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; +pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = c"pgsql_tmp"; +pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = c"pgsql_tmp"; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_dynshmem\0") }; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"mmap.\0") }; +pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = c"pg_dynshmem"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = c"mmap."; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const DEFAULT_SPINS_PER_DELAY: u32 = 100; @@ -1464,38 +507,13 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -#[allow(unsafe_code)] -pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_internal.init\0") }; +pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = c"pg_internal.init"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; pub const INDEX_NULL_MASK: u32 = 32768; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const SIZEOF_DSA_POINTER: u32 = 8; -#[allow(unsafe_code)] -pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%016lx\0") }; +pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = c"%016lx"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1629,40 +647,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const NSIG: u32 = 65; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const __sigstack_defined: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1703,10 +691,7 @@ pub const AUTH_REQ_SASL_CONT: u32 = 11; pub const AUTH_REQ_SASL_FIN: u32 = 12; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -#[allow(unsafe_code)] -pub const VALID_XFN_CHARS: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"0123456789ABCDEF.history.backup.partial\0") -}; +pub const VALID_XFN_CHARS: &::core::ffi::CStr = c"0123456789ABCDEF.history.backup.partial"; pub const CATALOG_VERSION_NO: u32 = 201909212; pub const OIDCHARS: u32 = 10; pub const FORKNAMECHARS: u32 = 4; @@ -1783,18 +768,10 @@ pub const INVALID_PGPROCNO: u32 = 2147483647; pub const DELAY_CHKPT_START: u32 = 1; pub const DELAY_CHKPT_COMPLETE: u32 = 2; pub const NUM_AUXILIARY_PROCS: u32 = 4; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/global.stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/global.tmp\0") }; -#[allow(unsafe_code)] -pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat_tmp\0") }; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = c"pg_stat"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = c"pg_stat/global.stat"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = c"pg_stat/global.tmp"; +pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = c"pg_stat_tmp"; pub const PGSTAT_MAX_MSG_SIZE: u32 = 1000; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638941; pub const PG_WAIT_LWLOCK: u32 = 16777216; @@ -1839,30 +816,14 @@ pub const CHECKPOINT_CAUSE_XLOG: u32 = 128; pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -#[allow(unsafe_code)] -pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"recovery.signal\0") }; -#[allow(unsafe_code)] -pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"standby.signal\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label.old\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map.old\0") }; -#[allow(unsafe_code)] -pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"promote\0") }; -#[allow(unsafe_code)] -pub const FALLBACK_PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"fallback_promote\0") }; +pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = c"recovery.signal"; +pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = c"standby.signal"; +pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = c"backup_label"; +pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = c"backup_label.old"; +pub const TABLESPACE_MAP: &::core::ffi::CStr = c"tablespace_map"; +pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = c"tablespace_map.old"; +pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = c"promote"; +pub const FALLBACK_PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = c"fallback_promote"; pub const XLOG_PAGE_MAGIC: u32 = 53505; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -1873,12 +834,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -#[allow(unsafe_code)] -pub const XLOGDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_wal\0") }; -#[allow(unsafe_code)] -pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"global/pg_control\0") }; +pub const XLOGDIR: &::core::ffi::CStr = c"pg_wal"; +pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = c"global/pg_control"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const RelationRelationId: Oid = Oid(1259); @@ -1986,9 +943,7 @@ pub const ACL_USAGE_CHR: u8 = 85u8; pub const ACL_CREATE_CHR: u8 = 67u8; pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; -#[allow(unsafe_code)] -pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"arwdDxtXUCTc\0") }; +pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = c"arwdDxtXUCTc"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -2035,9 +990,7 @@ pub const F_TUPLES_DELETED: u32 = 4; pub const F_FOLLOW_RIGHT: u32 = 8; pub const F_HAS_GARBAGE: u32 = 16; pub const GIST_PAGE_ID: u32 = 65409; -#[allow(unsafe_code)] -pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql.auto.conf\0") }; +pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = c"postgresql.auto.conf"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -2064,9 +1017,7 @@ pub const GUC_UNIT_TIME: u32 = 983040; pub const GUC_EXPLAIN: u32 = 1048576; pub const GUC_ALLOW_IN_PARALLEL: u32 = 2097152; pub const GUC_UNIT: u32 = 1044480; -#[allow(unsafe_code)] -pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"heap\0") }; +pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = c"heap"; pub const TABLE_INSERT_SKIP_WAL: u32 = 1; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; @@ -2097,87 +1048,33 @@ pub const INTERVAL_FULL_RANGE: u32 = 32767; pub const INTERVAL_RANGE_MASK: u32 = 32767; pub const INTERVAL_FULL_PRECISION: u32 = 65535; pub const INTERVAL_PRECISION_MASK: u32 = 65535; -#[allow(unsafe_code)] -pub const DAGO: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ago\0") }; -#[allow(unsafe_code)] -pub const DCURRENT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current\0") }; -#[allow(unsafe_code)] -pub const EPOCH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"epoch\0") }; -#[allow(unsafe_code)] -pub const INVALID: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"invalid\0") }; -#[allow(unsafe_code)] -pub const EARLY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-infinity\0") }; -#[allow(unsafe_code)] -pub const LATE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"infinity\0") }; -#[allow(unsafe_code)] -pub const NOW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"now\0") }; -#[allow(unsafe_code)] -pub const TODAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"today\0") }; -#[allow(unsafe_code)] -pub const TOMORROW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tomorrow\0") }; -#[allow(unsafe_code)] -pub const YESTERDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"yesterday\0") }; -#[allow(unsafe_code)] -pub const ZULU: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"zulu\0") }; -#[allow(unsafe_code)] -pub const DMICROSEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"usecond\0") }; -#[allow(unsafe_code)] -pub const DMILLISEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"msecond\0") }; -#[allow(unsafe_code)] -pub const DSECOND: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"second\0") }; -#[allow(unsafe_code)] -pub const DMINUTE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"minute\0") }; -#[allow(unsafe_code)] -pub const DHOUR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hour\0") }; -#[allow(unsafe_code)] -pub const DDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"day\0") }; -#[allow(unsafe_code)] -pub const DWEEK: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"week\0") }; -#[allow(unsafe_code)] -pub const DMONTH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"month\0") }; -#[allow(unsafe_code)] -pub const DQUARTER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"quarter\0") }; -#[allow(unsafe_code)] -pub const DYEAR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"year\0") }; -#[allow(unsafe_code)] -pub const DDECADE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"decade\0") }; -#[allow(unsafe_code)] -pub const DCENTURY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"century\0") }; -#[allow(unsafe_code)] -pub const DMILLENNIUM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"millennium\0") }; -#[allow(unsafe_code)] -pub const DA_D: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ad\0") }; -#[allow(unsafe_code)] -pub const DB_C: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"bc\0") }; -#[allow(unsafe_code)] -pub const DTIMEZONE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"timezone\0") }; +pub const DAGO: &::core::ffi::CStr = c"ago"; +pub const DCURRENT: &::core::ffi::CStr = c"current"; +pub const EPOCH: &::core::ffi::CStr = c"epoch"; +pub const INVALID: &::core::ffi::CStr = c"invalid"; +pub const EARLY: &::core::ffi::CStr = c"-infinity"; +pub const LATE: &::core::ffi::CStr = c"infinity"; +pub const NOW: &::core::ffi::CStr = c"now"; +pub const TODAY: &::core::ffi::CStr = c"today"; +pub const TOMORROW: &::core::ffi::CStr = c"tomorrow"; +pub const YESTERDAY: &::core::ffi::CStr = c"yesterday"; +pub const ZULU: &::core::ffi::CStr = c"zulu"; +pub const DMICROSEC: &::core::ffi::CStr = c"usecond"; +pub const DMILLISEC: &::core::ffi::CStr = c"msecond"; +pub const DSECOND: &::core::ffi::CStr = c"second"; +pub const DMINUTE: &::core::ffi::CStr = c"minute"; +pub const DHOUR: &::core::ffi::CStr = c"hour"; +pub const DDAY: &::core::ffi::CStr = c"day"; +pub const DWEEK: &::core::ffi::CStr = c"week"; +pub const DMONTH: &::core::ffi::CStr = c"month"; +pub const DQUARTER: &::core::ffi::CStr = c"quarter"; +pub const DYEAR: &::core::ffi::CStr = c"year"; +pub const DDECADE: &::core::ffi::CStr = c"decade"; +pub const DCENTURY: &::core::ffi::CStr = c"century"; +pub const DMILLENNIUM: &::core::ffi::CStr = c"millennium"; +pub const DA_D: &::core::ffi::CStr = c"ad"; +pub const DB_C: &::core::ffi::CStr = c"bc"; +pub const DTIMEZONE: &::core::ffi::CStr = c"timezone"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -2296,9 +1193,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -#[allow(unsafe_code)] -pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"btree\0") }; +pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = c"btree"; pub const INDEX_CREATE_IS_PRIMARY: u32 = 1; pub const INDEX_CREATE_ADD_CONSTRAINT: u32 = 2; pub const INDEX_CREATE_SKIP_BUILD: u32 = 4; @@ -3331,12 +2226,8 @@ pub const PLPGSQL_XCHECK_STRICTMULTIASSIGNMENT: u32 = 8; pub const POSTMASTER_FD_WATCH: u32 = 0; pub const POSTMASTER_FD_OWN: u32 = 1; pub const MAX_BACKENDS: u32 = 262143; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles\0") }; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles.tmp\0") }; +pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = c"current_logfiles"; +pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = c"current_logfiles.tmp"; pub const XLOG_STANDBY_LOCK: u32 = 0; pub const XLOG_RUNNING_XACTS: u32 = 16; pub const XLOG_INVALIDATIONS: u32 = 32; @@ -6003,139 +4894,20 @@ pub const RANGESTRAT_CONTAINS: u32 = 7; pub const RANGESTRAT_CONTAINED_BY: u32 = 8; pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; pub const RANGESTRAT_EQ: u32 = 18; +pub const PGERROR: u32 = 20; pub type pg_int64 = ::core::ffi::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::core::ffi::c_uchar; -pub type __u_short = ::core::ffi::c_ushort; -pub type __u_int = ::core::ffi::c_uint; -pub type __u_long = ::core::ffi::c_ulong; -pub type __int8_t = ::core::ffi::c_schar; -pub type __uint8_t = ::core::ffi::c_uchar; -pub type __int16_t = ::core::ffi::c_short; -pub type __uint16_t = ::core::ffi::c_ushort; -pub type __int32_t = ::core::ffi::c_int; -pub type __uint32_t = ::core::ffi::c_uint; -pub type __int64_t = ::core::ffi::c_long; -pub type __uint64_t = ::core::ffi::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::core::ffi::c_long; -pub type __u_quad_t = ::core::ffi::c_ulong; -pub type __intmax_t = ::core::ffi::c_long; -pub type __uintmax_t = ::core::ffi::c_ulong; -pub type __dev_t = ::core::ffi::c_ulong; pub type __uid_t = ::core::ffi::c_uint; pub type __gid_t = ::core::ffi::c_uint; pub type __ino_t = ::core::ffi::c_ulong; -pub type __ino64_t = ::core::ffi::c_ulong; pub type __mode_t = ::core::ffi::c_uint; -pub type __nlink_t = ::core::ffi::c_ulong; pub type __off_t = ::core::ffi::c_long; pub type __off64_t = ::core::ffi::c_long; pub type __pid_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::core::ffi::c_int; 2usize], -} -pub type __clock_t = ::core::ffi::c_long; -pub type __rlim_t = ::core::ffi::c_ulong; -pub type __rlim64_t = ::core::ffi::c_ulong; -pub type __id_t = ::core::ffi::c_uint; pub type __time_t = ::core::ffi::c_long; -pub type __useconds_t = ::core::ffi::c_uint; -pub type __suseconds_t = ::core::ffi::c_long; -pub type __suseconds64_t = ::core::ffi::c_long; -pub type __daddr_t = ::core::ffi::c_int; -pub type __key_t = ::core::ffi::c_int; -pub type __clockid_t = ::core::ffi::c_int; -pub type __timer_t = *mut ::core::ffi::c_void; -pub type __blksize_t = ::core::ffi::c_long; -pub type __blkcnt_t = ::core::ffi::c_long; -pub type __blkcnt64_t = ::core::ffi::c_long; -pub type __fsblkcnt_t = ::core::ffi::c_ulong; -pub type __fsblkcnt64_t = ::core::ffi::c_ulong; -pub type __fsfilcnt_t = ::core::ffi::c_ulong; -pub type __fsfilcnt64_t = ::core::ffi::c_ulong; -pub type __fsword_t = ::core::ffi::c_long; -pub type __ssize_t = ::core::ffi::c_long; pub type __syscall_slong_t = ::core::ffi::c_long; -pub type __syscall_ulong_t = ::core::ffi::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::core::ffi::c_char; -pub type __intptr_t = ::core::ffi::c_long; pub type __socklen_t = ::core::ffi::c_uint; pub type __sig_atomic_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::core::ffi::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::core::ffi::c_uint, - pub __wchb: [::core::ffi::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -6196,467 +4968,21 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub type wchar_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::core::ffi::c_int, - pub rem: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::core::ffi::c_long, - pub rem: ::core::ffi::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::core::ffi::c_longlong, - pub rem: ::core::ffi::c_longlong, -} -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 = ::core::ffi::c_ulong; -pub type ushort = ::core::ffi::c_ushort; -pub type uint = ::core::ffi::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::core::ffi::c_long; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct __sigset_t { pub __val: [::core::ffi::c_ulong; 16usize], } -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct timespec { pub tv_sec: __time_t, pub tv_nsec: __syscall_slong_t, } -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::core::ffi::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -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: ::core::ffi::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::core::ffi::c_uint, - pub __high: ::core::ffi::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::core::ffi::c_int, - pub __count: ::core::ffi::c_uint, - pub __owner: ::core::ffi::c_int, - pub __nusers: ::core::ffi::c_uint, - pub __kind: ::core::ffi::c_int, - pub __spins: ::core::ffi::c_short, - pub __elision: ::core::ffi::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::core::ffi::c_uint, - pub __writers: ::core::ffi::c_uint, - pub __wrphase_futex: ::core::ffi::c_uint, - pub __writers_futex: ::core::ffi::c_uint, - pub __pad3: ::core::ffi::c_uint, - pub __pad4: ::core::ffi::c_uint, - pub __cur_writer: ::core::ffi::c_int, - pub __shared: ::core::ffi::c_int, - pub __rwelision: ::core::ffi::c_schar, - pub __pad1: [::core::ffi::c_uchar; 7usize], - pub __pad2: ::core::ffi::c_ulong, - pub __flags: ::core::ffi::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::core::ffi::c_uint; 2usize], - pub __g_size: [::core::ffi::c_uint; 2usize], - pub __g1_orig_size: ::core::ffi::c_uint, - pub __wrefs: ::core::ffi::c_uint, - pub __g_signals: [::core::ffi::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::core::ffi::c_uint; -pub type __thrd_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::core::ffi::c_int, -} -pub type pthread_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::core::ffi::c_uint; -pub type pthread_once_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::core::ffi::c_char; 40usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::core::ffi::c_char; 48usize], - pub __align: ::core::ffi::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::core::ffi::c_char; 8usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::core::ffi::c_char; 32usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::core::ffi::c_int, - pub rand_deg: ::core::ffi::c_int, - pub rand_sep: ::core::ffi::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::core::ffi::c_ushort; 3usize], - pub __old_x: [::core::ffi::c_ushort; 3usize], - pub __c: ::core::ffi::c_ushort, - pub __init: ::core::ffi::c_ushort, - pub __a: ::core::ffi::c_ulonglong, -} -pub type __compar_fn_t = ::core::option::Option< - unsafe extern "C" fn( - arg1: *const ::core::ffi::c_void, - arg2: *const ::core::ffi::c_void, - ) -> ::core::ffi::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::core::ffi::c_ushort, - pub __ctype_tolower: *const ::core::ffi::c_int, - pub __ctype_toupper: *const ::core::ffi::c_int, - pub __names: [*const ::core::ffi::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::core::ffi::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -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 = ::core::ffi::c_schar; -pub type int_fast16_t = ::core::ffi::c_long; -pub type int_fast32_t = ::core::ffi::c_long; -pub type int_fast64_t = ::core::ffi::c_long; -pub type uint_fast8_t = ::core::ffi::c_uchar; -pub type uint_fast16_t = ::core::ffi::c_ulong; -pub type uint_fast32_t = ::core::ffi::c_ulong; -pub type uint_fast64_t = ::core::ffi::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::core::ffi::c_char, - pub thousands_sep: *mut ::core::ffi::c_char, - pub grouping: *mut ::core::ffi::c_char, - pub int_curr_symbol: *mut ::core::ffi::c_char, - pub currency_symbol: *mut ::core::ffi::c_char, - pub mon_decimal_point: *mut ::core::ffi::c_char, - pub mon_thousands_sep: *mut ::core::ffi::c_char, - pub mon_grouping: *mut ::core::ffi::c_char, - pub positive_sign: *mut ::core::ffi::c_char, - pub negative_sign: *mut ::core::ffi::c_char, - pub int_frac_digits: ::core::ffi::c_char, - pub frac_digits: ::core::ffi::c_char, - pub p_cs_precedes: ::core::ffi::c_char, - pub p_sep_by_space: ::core::ffi::c_char, - pub n_cs_precedes: ::core::ffi::c_char, - pub n_sep_by_space: ::core::ffi::c_char, - pub p_sign_posn: ::core::ffi::c_char, - pub n_sign_posn: ::core::ffi::c_char, - pub int_p_cs_precedes: ::core::ffi::c_char, - pub int_p_sep_by_space: ::core::ffi::c_char, - pub int_n_cs_precedes: ::core::ffi::c_char, - pub int_n_sep_by_space: ::core::ffi::c_char, - pub int_p_sign_posn: ::core::ffi::c_char, - pub int_n_sign_posn: ::core::ffi::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type Pointer = *mut ::core::ffi::c_char; pub type int8 = ::core::ffi::c_schar; pub type int16 = ::core::ffi::c_short; @@ -6787,57 +5113,9 @@ impl Default for PGAlignedXLogBlock { } } } -pub mod _bindgen_ty_1 { - pub type Type = ::core::ffi::c_uint; - pub const _ISupper: Type = 256; - pub const _ISlower: Type = 512; - pub const _ISalpha: Type = 1024; - pub const _ISdigit: Type = 2048; - pub const _ISxdigit: Type = 4096; - pub const _ISspace: Type = 8192; - pub const _ISprint: Type = 16384; - pub const _ISgraph: Type = 32768; - pub const _ISblank: Type = 1; - pub const _IScntrl: Type = 2; - pub const _ISpunct: Type = 4; - pub const _ISalnum: Type = 8; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::core::ffi::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type socklen_t = __socklen_t; -pub mod __socket_type { - pub type Type = ::core::ffi::c_uint; - pub const SOCK_STREAM: Type = 1; - pub const SOCK_DGRAM: Type = 2; - pub const SOCK_RAW: Type = 3; - pub const SOCK_RDM: Type = 4; - pub const SOCK_SEQPACKET: Type = 5; - pub const SOCK_DCCP: Type = 6; - pub const SOCK_PACKET: Type = 10; - pub const SOCK_CLOEXEC: Type = 524288; - pub const SOCK_NONBLOCK: Type = 2048; -} pub type sa_family_t = ::core::ffi::c_ushort; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::core::ffi::c_char; 14usize], -} -#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr_storage { pub ss_family: sa_family_t, @@ -6853,404 +5131,6 @@ impl Default for sockaddr_storage { } } } -pub mod _bindgen_ty_2 { - pub type Type = ::core::ffi::c_uint; - pub const MSG_OOB: Type = 1; - pub const MSG_PEEK: Type = 2; - pub const MSG_DONTROUTE: Type = 4; - pub const MSG_CTRUNC: Type = 8; - pub const MSG_PROXY: Type = 16; - pub const MSG_TRUNC: Type = 32; - pub const MSG_DONTWAIT: Type = 64; - pub const MSG_EOR: Type = 128; - pub const MSG_WAITALL: Type = 256; - pub const MSG_FIN: Type = 512; - pub const MSG_SYN: Type = 1024; - pub const MSG_CONFIRM: Type = 2048; - pub const MSG_RST: Type = 4096; - pub const MSG_ERRQUEUE: Type = 8192; - pub const MSG_NOSIGNAL: Type = 16384; - pub const MSG_MORE: Type = 32768; - pub const MSG_WAITFORONE: Type = 65536; - pub const MSG_BATCH: Type = 262144; - pub const MSG_ZEROCOPY: Type = 67108864; - pub const MSG_FASTOPEN: Type = 536870912; - pub const MSG_CMSG_CLOEXEC: Type = 1073741824; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::core::ffi::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::core::ffi::c_void, - pub msg_controllen: usize, - pub msg_flags: ::core::ffi::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::core::ffi::c_int, - pub cmsg_type: ::core::ffi::c_int, - pub __cmsg_data: __IncompleteArrayField<::core::ffi::c_uchar>, -} -pub mod _bindgen_ty_3 { - pub type Type = ::core::ffi::c_uint; - pub const SCM_RIGHTS: Type = 1; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::core::ffi::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::core::option::Option; -pub type __kernel_key_t = ::core::ffi::c_int; -pub type __kernel_mqd_t = ::core::ffi::c_int; -pub type __kernel_old_uid_t = ::core::ffi::c_ushort; -pub type __kernel_old_gid_t = ::core::ffi::c_ushort; -pub type __kernel_old_dev_t = ::core::ffi::c_ulong; -pub type __kernel_long_t = ::core::ffi::c_long; -pub type __kernel_ulong_t = ::core::ffi::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::core::ffi::c_uint; -pub type __kernel_pid_t = ::core::ffi::c_int; -pub type __kernel_ipc_pid_t = ::core::ffi::c_int; -pub type __kernel_uid_t = ::core::ffi::c_uint; -pub type __kernel_gid_t = ::core::ffi::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::core::ffi::c_int; -pub type __kernel_uid32_t = ::core::ffi::c_uint; -pub type __kernel_gid32_t = ::core::ffi::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::core::ffi::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::core::ffi::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::core::ffi::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::core::ffi::c_int; -pub type __kernel_clockid_t = ::core::ffi::c_int; -pub type __kernel_caddr_t = *mut ::core::ffi::c_char; -pub type __kernel_uid16_t = ::core::ffi::c_ushort; -pub type __kernel_gid16_t = ::core::ffi::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::core::ffi::c_int, - pub l_linger: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::core::ffi::c_ushort, - pub sa_data: [::core::ffi::c_uchar; 14usize], -} -pub mod _bindgen_ty_4 { - pub type Type = ::core::ffi::c_uint; - pub const SHUT_RD: Type = 0; - pub const SHUT_WR: Type = 1; - pub const SHUT_RDWR: Type = 2; -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::core::ffi::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::core::ffi::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub mod _bindgen_ty_5 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_IP: Type = 0; - pub const IPPROTO_ICMP: Type = 1; - pub const IPPROTO_IGMP: Type = 2; - pub const IPPROTO_IPIP: Type = 4; - pub const IPPROTO_TCP: Type = 6; - pub const IPPROTO_EGP: Type = 8; - pub const IPPROTO_PUP: Type = 12; - pub const IPPROTO_UDP: Type = 17; - pub const IPPROTO_IDP: Type = 22; - pub const IPPROTO_TP: Type = 29; - pub const IPPROTO_DCCP: Type = 33; - pub const IPPROTO_IPV6: Type = 41; - pub const IPPROTO_RSVP: Type = 46; - pub const IPPROTO_GRE: Type = 47; - pub const IPPROTO_ESP: Type = 50; - pub const IPPROTO_AH: Type = 51; - pub const IPPROTO_MTP: Type = 92; - pub const IPPROTO_BEETPH: Type = 94; - pub const IPPROTO_ENCAP: Type = 98; - pub const IPPROTO_PIM: Type = 103; - pub const IPPROTO_COMP: Type = 108; - pub const IPPROTO_SCTP: Type = 132; - pub const IPPROTO_UDPLITE: Type = 136; - pub const IPPROTO_MPLS: Type = 137; - pub const IPPROTO_ETHERNET: Type = 143; - pub const IPPROTO_RAW: Type = 255; - pub const IPPROTO_MPTCP: Type = 262; - pub const IPPROTO_MAX: Type = 263; -} -pub mod _bindgen_ty_6 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_HOPOPTS: Type = 0; - pub const IPPROTO_ROUTING: Type = 43; - pub const IPPROTO_FRAGMENT: Type = 44; - pub const IPPROTO_ICMPV6: Type = 58; - pub const IPPROTO_NONE: Type = 59; - pub const IPPROTO_DSTOPTS: Type = 60; - pub const IPPROTO_MH: Type = 135; -} -pub type in_port_t = u16; -pub mod _bindgen_ty_7 { - pub type Type = ::core::ffi::c_uint; - pub const IPPORT_ECHO: Type = 7; - pub const IPPORT_DISCARD: Type = 9; - pub const IPPORT_SYSTAT: Type = 11; - pub const IPPORT_DAYTIME: Type = 13; - pub const IPPORT_NETSTAT: Type = 15; - pub const IPPORT_FTP: Type = 21; - pub const IPPORT_TELNET: Type = 23; - pub const IPPORT_SMTP: Type = 25; - pub const IPPORT_TIMESERVER: Type = 37; - pub const IPPORT_NAMESERVER: Type = 42; - pub const IPPORT_WHOIS: Type = 43; - pub const IPPORT_MTP: Type = 57; - pub const IPPORT_TFTP: Type = 69; - pub const IPPORT_RJE: Type = 77; - pub const IPPORT_FINGER: Type = 79; - pub const IPPORT_TTYLINK: Type = 87; - pub const IPPORT_SUPDUP: Type = 95; - pub const IPPORT_EXECSERVER: Type = 512; - pub const IPPORT_LOGINSERVER: Type = 513; - pub const IPPORT_CMDSERVER: Type = 514; - pub const IPPORT_EFSSERVER: Type = 520; - pub const IPPORT_BIFFUDP: Type = 512; - pub const IPPORT_WHOSERVER: Type = 513; - pub const IPPORT_ROUTESERVER: Type = 520; - pub const IPPORT_RESERVED: Type = 1024; - pub const IPPORT_USERRESERVED: Type = 5000; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::core::ffi::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::core::ffi::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::core::ffi::c_char, - pub r_aliases: *mut *mut ::core::ffi::c_char, - pub r_number: ::core::ffi::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::core::ffi::c_char, - pub n_aliases: *mut *mut ::core::ffi::c_char, - pub n_addrtype: ::core::ffi::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct hostent { @@ -7271,60 +5151,6 @@ impl Default for hostent { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::core::ffi::c_char, - pub s_aliases: *mut *mut ::core::ffi::c_char, - pub s_port: ::core::ffi::c_int, - pub s_proto: *mut ::core::ffi::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::core::ffi::c_char, - pub p_aliases: *mut *mut ::core::ffi::c_char, - pub p_proto: ::core::ffi::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::core::ffi::c_int, - pub ai_family: ::core::ffi::c_int, - pub ai_socktype: ::core::ffi::c_int, - pub ai_protocol: ::core::ffi::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::core::ffi::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct passwd { pub pw_name: *mut ::core::ffi::c_char, pub pw_passwd: *mut ::core::ffi::c_char, @@ -7344,16 +5170,6 @@ impl Default for passwd { } } pub type pgsocket = ::core::ffi::c_int; -pub type float_t = f32; -pub type double_t = f64; -pub mod _bindgen_ty_8 { - pub type Type = ::core::ffi::c_uint; - pub const FP_NAN: Type = 0; - pub const FP_INFINITE: Type = 1; - pub const FP_ZERO: Type = 2; - pub const FP_SUBNORMAL: Type = 3; - pub const FP_NORMAL: Type = 4; -} pub type qsort_arg_comparator = ::core::option::Option< unsafe extern "C" fn( a: *const ::core::ffi::c_void, @@ -7370,7 +5186,6 @@ pub struct __jmp_buf_tag { pub __mask_was_saved: ::core::ffi::c_int, pub __saved_mask: __sigset_t, } -pub type jmp_buf = [__jmp_buf_tag; 1usize]; pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -8320,6 +6135,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_off_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_off_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn lp_flags(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } } @@ -8331,6 +6168,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_flags_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 15usize, + 2u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_flags_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 15usize, + 2u8, + val as u64, + ) + } + } + #[inline] pub fn lp_len(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } } @@ -8342,6 +6201,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_len_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 17usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_len_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 17usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( lp_off: ::core::ffi::c_uint, lp_flags: ::core::ffi::c_uint, @@ -8394,34 +6275,6 @@ impl Default for HeapTupleData { } } pub type HeapTuple = *mut HeapTupleData; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::core::ffi::c_short, - pub l_whence: ::core::ffi::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::core::ffi::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; pub type TimeLineID = uint32; @@ -8737,36 +6590,6 @@ impl Default for TupleConversionMap { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::core::ffi::c_int, - pub tm_min: ::core::ffi::c_int, - pub tm_hour: ::core::ffi::c_int, - pub tm_mday: ::core::ffi::c_int, - pub tm_mon: ::core::ffi::c_int, - pub tm_year: ::core::ffi::c_int, - pub tm_wday: ::core::ffi::c_int, - pub tm_yday: ::core::ffi::c_int, - pub tm_isdst: ::core::ffi::c_int, - pub tm_gmtoff: ::core::ffi::c_long, - pub tm_zone: *const ::core::ffi::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} pub type instr_time = timespec; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] @@ -11270,18 +9093,6 @@ impl Default for dirent { } } } -pub mod _bindgen_ty_9 { - pub type Type = ::core::ffi::c_uint; - pub const DT_UNKNOWN: Type = 0; - pub const DT_FIFO: Type = 1; - pub const DT_CHR: Type = 2; - pub const DT_DIR: Type = 4; - pub const DT_BLK: Type = 6; - pub const DT_REG: Type = 8; - pub const DT_LNK: Type = 10; - pub const DT_SOCK: Type = 12; - pub const DT_WHT: Type = 14; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { @@ -17121,586 +14932,13 @@ pub mod TypeFuncClass { pub const TYPEFUNC_OTHER: Type = 4; } pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::core::ffi::c_int, - pub sival_ptr: *mut ::core::ffi::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::core::ffi::c_int, - pub si_errno: ::core::ffi::c_int, - pub si_code: ::core::ffi::c_int, - pub __pad0: ::core::ffi::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::core::ffi::c_int, - pub si_overrun: ::core::ffi::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::core::ffi::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::core::ffi::c_void, - pub si_addr_lsb: ::core::ffi::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::core::ffi::c_void, - pub _upper: *mut ::core::ffi::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::core::ffi::c_long, - pub si_fd: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::core::ffi::c_void, - pub _syscall: ::core::ffi::c_int, - pub _arch: ::core::ffi::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_10 { - pub type Type = ::core::ffi::c_int; - pub const SI_ASYNCNL: Type = -60; - pub const SI_DETHREAD: Type = -7; - pub const SI_TKILL: Type = -6; - pub const SI_SIGIO: Type = -5; - pub const SI_ASYNCIO: Type = -4; - pub const SI_MESGQ: Type = -3; - pub const SI_TIMER: Type = -2; - pub const SI_QUEUE: Type = -1; - pub const SI_USER: Type = 0; - pub const SI_KERNEL: Type = 128; -} -pub mod _bindgen_ty_11 { - pub type Type = ::core::ffi::c_uint; - pub const ILL_ILLOPC: Type = 1; - pub const ILL_ILLOPN: Type = 2; - pub const ILL_ILLADR: Type = 3; - pub const ILL_ILLTRP: Type = 4; - pub const ILL_PRVOPC: Type = 5; - pub const ILL_PRVREG: Type = 6; - pub const ILL_COPROC: Type = 7; - pub const ILL_BADSTK: Type = 8; - pub const ILL_BADIADDR: Type = 9; -} -pub mod _bindgen_ty_12 { - pub type Type = ::core::ffi::c_uint; - pub const FPE_INTDIV: Type = 1; - pub const FPE_INTOVF: Type = 2; - pub const FPE_FLTDIV: Type = 3; - pub const FPE_FLTOVF: Type = 4; - pub const FPE_FLTUND: Type = 5; - pub const FPE_FLTRES: Type = 6; - pub const FPE_FLTINV: Type = 7; - pub const FPE_FLTSUB: Type = 8; - pub const FPE_FLTUNK: Type = 14; - pub const FPE_CONDTRAP: Type = 15; -} -pub mod _bindgen_ty_13 { - pub type Type = ::core::ffi::c_uint; - pub const SEGV_MAPERR: Type = 1; - pub const SEGV_ACCERR: Type = 2; - pub const SEGV_BNDERR: Type = 3; - pub const SEGV_PKUERR: Type = 4; - pub const SEGV_ACCADI: Type = 5; - pub const SEGV_ADIDERR: Type = 6; - pub const SEGV_ADIPERR: Type = 7; - pub const SEGV_MTEAERR: Type = 8; - pub const SEGV_MTESERR: Type = 9; -} -pub mod _bindgen_ty_14 { - pub type Type = ::core::ffi::c_uint; - pub const BUS_ADRALN: Type = 1; - pub const BUS_ADRERR: Type = 2; - pub const BUS_OBJERR: Type = 3; - pub const BUS_MCEERR_AR: Type = 4; - pub const BUS_MCEERR_AO: Type = 5; -} -pub mod _bindgen_ty_15 { - pub type Type = ::core::ffi::c_uint; - pub const CLD_EXITED: Type = 1; - pub const CLD_KILLED: Type = 2; - pub const CLD_DUMPED: Type = 3; - pub const CLD_TRAPPED: Type = 4; - pub const CLD_STOPPED: Type = 5; - pub const CLD_CONTINUED: Type = 6; -} -pub mod _bindgen_ty_16 { - pub type Type = ::core::ffi::c_uint; - pub const POLL_IN: Type = 1; - pub const POLL_OUT: Type = 2; - pub const POLL_MSG: Type = 3; - pub const POLL_ERR: Type = 4; - pub const POLL_PRI: Type = 5; - pub const POLL_HUP: Type = 6; -} -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::core::ffi::c_int, - pub sigev_notify: ::core::ffi::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::core::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub mod _bindgen_ty_17 { +pub mod _bindgen_ty_19 { pub type Type = ::core::ffi::c_uint; pub const SIGEV_SIGNAL: Type = 0; pub const SIGEV_NONE: Type = 1; pub const SIGEV_THREAD: Type = 2; pub const SIGEV_THREAD_ID: Type = 4; } -pub type __sighandler_t = ::core::option::Option; -pub type sig_t = __sighandler_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::core::ffi::c_int, - pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::core::option::Option< - unsafe extern "C" fn( - arg1: ::core::ffi::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::core::ffi::c_void, - ), - >, -} -impl Default for sigaction__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigaction { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::core::ffi::c_ushort, - pub gs: ::core::ffi::c_ushort, - pub fs: ::core::ffi::c_ushort, - pub __pad0: ::core::ffi::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_flags: ::core::ffi::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type greg_t = ::core::ffi::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::core::ffi::c_ulonglong; 8usize], -} -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::core::ffi::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::core::ffi::c_ulonglong; 4usize], -} -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_18 { - pub type Type = ::core::ffi::c_uint; - pub const SS_ONSTACK: Type = 1; - pub const SS_DISABLE: Type = 2; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_onstack: ::core::ffi::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -17763,21 +15001,6 @@ pub mod AuxProcType { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::core::ffi::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct SockAddr { pub addr: sockaddr_storage, pub salen: socklen_t, @@ -27290,7 +24513,7 @@ pub mod PLpgSQL_stmt_type { pub const PLPGSQL_STMT_ROLLBACK: Type = 26; pub const PLPGSQL_STMT_SET: Type = 27; } -pub mod _bindgen_ty_19 { +pub mod _bindgen_ty_25 { pub type Type = ::core::ffi::c_uint; pub const PLPGSQL_RC_OK: Type = 0; pub const PLPGSQL_RC_EXIT: Type = 1; @@ -29125,6 +26348,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn haspos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_haspos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u32) } } @@ -29136,6 +26381,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 11u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 11u8, + val as u64, + ) + } + } + #[inline] pub fn pos(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -29147,6 +26414,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn pos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_pos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( haspos: uint32, len: uint32, @@ -29213,6 +26502,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn length_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 12u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_length_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 12u8, + val as u64, + ) + } + } + #[inline] pub fn distance(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -29224,6 +26535,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn distance_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_distance_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1(length: uint32, distance: uint32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 12u8, { @@ -29316,6 +26649,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn selected_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_selected_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn in_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } @@ -29327,6 +26682,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn in__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_in_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn replace(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } @@ -29338,6 +26715,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn replace_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 2usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_replace_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 2usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn repeated(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } @@ -29349,6 +26748,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn repeated_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 3usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_repeated_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 3usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn skip(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } @@ -29360,6 +26781,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn skip_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 4usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_skip_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 4usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn unused(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) } } @@ -29371,6 +26814,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn unused_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 5usize, + 3u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_unused_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 5usize, + 3u8, + val as u64, + ) + } + } + #[inline] pub fn type_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } } @@ -29382,6 +26847,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn type__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 8usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_type_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 8usize, + 8u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } } @@ -29393,6 +26880,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 16usize, + 16u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 16usize, + 16u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( selected: uint32, in_: uint32, @@ -30334,11 +27843,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -30393,58 +27897,13 @@ pub struct SnapBuild { pub _address: u8, } #[pgrx_macros::pg_guard] -extern "C" { - #[link_name = "\u{1}__isoc99_fscanf"] - pub fn fscanf1( - __stream: *mut FILE, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_scanf"] - pub fn scanf1(__format: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_sscanf"] - pub fn sscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vfscanf"] - pub fn vfscanf1( - __s: *mut FILE, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vscanf"] - pub fn vscanf1( - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vsscanf"] - pub fn vsscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - pub fn alloca(__size: ::core::ffi::c_ulong) -> *mut ::core::ffi::c_void; - pub fn atexit(__func: ::core::option::Option) -> ::core::ffi::c_int; - pub fn at_quick_exit( - __func: ::core::option::Option, - ) -> ::core::ffi::c_int; - pub fn __memcmpeq( - __s1: *const ::core::ffi::c_void, - __s2: *const ::core::ffi::c_void, - __n: usize, - ) -> ::core::ffi::c_int; +unsafe extern "C" { pub fn ExceptionalCondition( conditionName: *const ::core::ffi::c_char, errorType: *const ::core::ffi::c_char, fileName: *const ::core::ffi::c_char, lineNumber: ::core::ffi::c_int, ) -> !; - pub fn bindresvport6( - __sockfd: ::core::ffi::c_int, - __sock_in: *mut sockaddr_in6, - ) -> ::core::ffi::c_int; pub fn pg_set_noblock(sock: pgsocket) -> bool; pub fn pg_set_block(sock: pgsocket) -> bool; pub fn has_drive_prefix(filename: *const ::core::ffi::c_char) -> bool; @@ -30545,22 +28004,42 @@ extern "C" { pub fn pg_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_toupper(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; + pub fn pg_vsnprintf( + str_: *mut ::core::ffi::c_char, + count: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_snprintf( str_: *mut ::core::ffi::c_char, count: usize, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vsprintf( + str_: *mut ::core::ffi::c_char, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_sprintf( str_: *mut ::core::ffi::c_char, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vfprintf( + stream: *mut FILE, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_fprintf( stream: *mut FILE, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vprintf( + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_printf(fmt: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; pub fn pg_strfromd( str_: *mut ::core::ffi::c_char, @@ -30593,210 +28072,6 @@ extern "C" { uid: *mut uid_t, gid: *mut gid_t, ) -> ::core::ffi::c_int; - pub fn __acos(__x: f64) -> f64; - pub fn __asin(__x: f64) -> f64; - pub fn __atan(__x: f64) -> f64; - pub fn __atan2(__y: f64, __x: f64) -> f64; - pub fn __cos(__x: f64) -> f64; - pub fn __sin(__x: f64) -> f64; - pub fn __tan(__x: f64) -> f64; - pub fn __cosh(__x: f64) -> f64; - pub fn __sinh(__x: f64) -> f64; - pub fn __tanh(__x: f64) -> f64; - pub fn __acosh(__x: f64) -> f64; - pub fn __asinh(__x: f64) -> f64; - pub fn __atanh(__x: f64) -> f64; - pub fn __exp(__x: f64) -> f64; - pub fn __frexp(__x: f64, __exponent: *mut ::core::ffi::c_int) -> f64; - pub fn __ldexp(__x: f64, __exponent: ::core::ffi::c_int) -> f64; - pub fn __log(__x: f64) -> f64; - pub fn __log10(__x: f64) -> f64; - pub fn __modf(__x: f64, __iptr: *mut f64) -> f64; - pub fn __expm1(__x: f64) -> f64; - pub fn __log1p(__x: f64) -> f64; - pub fn __logb(__x: f64) -> f64; - pub fn __exp2(__x: f64) -> f64; - pub fn __log2(__x: f64) -> f64; - pub fn __pow(__x: f64, __y: f64) -> f64; - pub fn __sqrt(__x: f64) -> f64; - pub fn __hypot(__x: f64, __y: f64) -> f64; - pub fn __cbrt(__x: f64) -> f64; - pub fn __ceil(__x: f64) -> f64; - pub fn __fabs(__x: f64) -> f64; - pub fn __floor(__x: f64) -> f64; - pub fn __fmod(__x: f64, __y: f64) -> f64; - pub fn __drem(__x: f64, __y: f64) -> f64; - pub fn __significand(__x: f64) -> f64; - pub fn __copysign(__x: f64, __y: f64) -> f64; - pub fn __nan(__tagb: *const ::core::ffi::c_char) -> f64; - pub fn __j0(arg1: f64) -> f64; - pub fn __j1(arg1: f64) -> f64; - pub fn __jn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __y0(arg1: f64) -> f64; - pub fn __y1(arg1: f64) -> f64; - pub fn __yn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __erf(arg1: f64) -> f64; - pub fn __erfc(arg1: f64) -> f64; - pub fn __lgamma(arg1: f64) -> f64; - pub fn __tgamma(arg1: f64) -> f64; - pub fn __gamma(arg1: f64) -> f64; - pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::core::ffi::c_int) -> f64; - pub fn __rint(__x: f64) -> f64; - pub fn __nextafter(__x: f64, __y: f64) -> f64; - pub fn __nexttoward(__x: f64, __y: u128) -> f64; - pub fn __remainder(__x: f64, __y: f64) -> f64; - pub fn __scalbn(__x: f64, __n: ::core::ffi::c_int) -> f64; - pub fn __ilogb(__x: f64) -> ::core::ffi::c_int; - pub fn __scalbln(__x: f64, __n: ::core::ffi::c_long) -> f64; - pub fn __nearbyint(__x: f64) -> f64; - pub fn __round(__x: f64) -> f64; - pub fn __trunc(__x: f64) -> f64; - pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::core::ffi::c_int) -> f64; - pub fn __lrint(__x: f64) -> ::core::ffi::c_long; - pub fn __llrint(__x: f64) -> ::core::ffi::c_longlong; - pub fn __lround(__x: f64) -> ::core::ffi::c_long; - pub fn __llround(__x: f64) -> ::core::ffi::c_longlong; - pub fn __fdim(__x: f64, __y: f64) -> f64; - pub fn __fmax(__x: f64, __y: f64) -> f64; - pub fn __fmin(__x: f64, __y: f64) -> f64; - pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64; - pub fn __scalb(__x: f64, __n: f64) -> f64; - pub fn __acosf(__x: f32) -> f32; - pub fn __asinf(__x: f32) -> f32; - pub fn __atanf(__x: f32) -> f32; - pub fn __atan2f(__y: f32, __x: f32) -> f32; - pub fn __cosf(__x: f32) -> f32; - pub fn __sinf(__x: f32) -> f32; - pub fn __tanf(__x: f32) -> f32; - pub fn __coshf(__x: f32) -> f32; - pub fn __sinhf(__x: f32) -> f32; - pub fn __tanhf(__x: f32) -> f32; - pub fn __acoshf(__x: f32) -> f32; - pub fn __asinhf(__x: f32) -> f32; - pub fn __atanhf(__x: f32) -> f32; - pub fn __expf(__x: f32) -> f32; - pub fn __frexpf(__x: f32, __exponent: *mut ::core::ffi::c_int) -> f32; - pub fn __ldexpf(__x: f32, __exponent: ::core::ffi::c_int) -> f32; - pub fn __logf(__x: f32) -> f32; - pub fn __log10f(__x: f32) -> f32; - pub fn __modff(__x: f32, __iptr: *mut f32) -> f32; - pub fn __expm1f(__x: f32) -> f32; - pub fn __log1pf(__x: f32) -> f32; - pub fn __logbf(__x: f32) -> f32; - pub fn __exp2f(__x: f32) -> f32; - pub fn __log2f(__x: f32) -> f32; - pub fn __powf(__x: f32, __y: f32) -> f32; - pub fn __sqrtf(__x: f32) -> f32; - pub fn __hypotf(__x: f32, __y: f32) -> f32; - pub fn __cbrtf(__x: f32) -> f32; - pub fn __ceilf(__x: f32) -> f32; - pub fn __fabsf(__x: f32) -> f32; - pub fn __floorf(__x: f32) -> f32; - pub fn __fmodf(__x: f32, __y: f32) -> f32; - pub fn __dremf(__x: f32, __y: f32) -> f32; - pub fn __significandf(__x: f32) -> f32; - pub fn __copysignf(__x: f32, __y: f32) -> f32; - pub fn __nanf(__tagb: *const ::core::ffi::c_char) -> f32; - pub fn __j0f(arg1: f32) -> f32; - pub fn __j1f(arg1: f32) -> f32; - pub fn __jnf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __y0f(arg1: f32) -> f32; - pub fn __y1f(arg1: f32) -> f32; - pub fn __ynf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __erff(arg1: f32) -> f32; - pub fn __erfcf(arg1: f32) -> f32; - pub fn __lgammaf(arg1: f32) -> f32; - pub fn __tgammaf(arg1: f32) -> f32; - pub fn __gammaf(arg1: f32) -> f32; - pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::core::ffi::c_int) -> f32; - pub fn __rintf(__x: f32) -> f32; - pub fn __nextafterf(__x: f32, __y: f32) -> f32; - pub fn __nexttowardf(__x: f32, __y: u128) -> f32; - pub fn __remainderf(__x: f32, __y: f32) -> f32; - pub fn __scalbnf(__x: f32, __n: ::core::ffi::c_int) -> f32; - pub fn __ilogbf(__x: f32) -> ::core::ffi::c_int; - pub fn __scalblnf(__x: f32, __n: ::core::ffi::c_long) -> f32; - pub fn __nearbyintf(__x: f32) -> f32; - pub fn __roundf(__x: f32) -> f32; - pub fn __truncf(__x: f32) -> f32; - pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::core::ffi::c_int) -> f32; - pub fn __lrintf(__x: f32) -> ::core::ffi::c_long; - pub fn __llrintf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __lroundf(__x: f32) -> ::core::ffi::c_long; - pub fn __llroundf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __fdimf(__x: f32, __y: f32) -> f32; - pub fn __fmaxf(__x: f32, __y: f32) -> f32; - pub fn __fminf(__x: f32, __y: f32) -> f32; - pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32; - pub fn __scalbf(__x: f32, __n: f32) -> f32; - pub fn __acosl(__x: u128) -> u128; - pub fn __asinl(__x: u128) -> u128; - pub fn __atanl(__x: u128) -> u128; - pub fn __atan2l(__y: u128, __x: u128) -> u128; - pub fn __cosl(__x: u128) -> u128; - pub fn __sinl(__x: u128) -> u128; - pub fn __tanl(__x: u128) -> u128; - pub fn __coshl(__x: u128) -> u128; - pub fn __sinhl(__x: u128) -> u128; - pub fn __tanhl(__x: u128) -> u128; - pub fn __acoshl(__x: u128) -> u128; - pub fn __asinhl(__x: u128) -> u128; - pub fn __atanhl(__x: u128) -> u128; - pub fn __expl(__x: u128) -> u128; - pub fn __frexpl(__x: u128, __exponent: *mut ::core::ffi::c_int) -> u128; - pub fn __ldexpl(__x: u128, __exponent: ::core::ffi::c_int) -> u128; - pub fn __logl(__x: u128) -> u128; - pub fn __log10l(__x: u128) -> u128; - pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128; - pub fn __expm1l(__x: u128) -> u128; - pub fn __log1pl(__x: u128) -> u128; - pub fn __logbl(__x: u128) -> u128; - pub fn __exp2l(__x: u128) -> u128; - pub fn __log2l(__x: u128) -> u128; - pub fn __powl(__x: u128, __y: u128) -> u128; - pub fn __sqrtl(__x: u128) -> u128; - pub fn __hypotl(__x: u128, __y: u128) -> u128; - pub fn __cbrtl(__x: u128) -> u128; - pub fn __ceill(__x: u128) -> u128; - pub fn __fabsl(__x: u128) -> u128; - pub fn __floorl(__x: u128) -> u128; - pub fn __fmodl(__x: u128, __y: u128) -> u128; - pub fn __dreml(__x: u128, __y: u128) -> u128; - pub fn __significandl(__x: u128) -> u128; - pub fn __copysignl(__x: u128, __y: u128) -> u128; - pub fn __nanl(__tagb: *const ::core::ffi::c_char) -> u128; - pub fn __j0l(arg1: u128) -> u128; - pub fn __j1l(arg1: u128) -> u128; - pub fn __jnl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __y0l(arg1: u128) -> u128; - pub fn __y1l(arg1: u128) -> u128; - pub fn __ynl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __erfl(arg1: u128) -> u128; - pub fn __erfcl(arg1: u128) -> u128; - pub fn __lgammal(arg1: u128) -> u128; - pub fn __tgammal(arg1: u128) -> u128; - pub fn __gammal(arg1: u128) -> u128; - pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::core::ffi::c_int) -> u128; - pub fn __rintl(__x: u128) -> u128; - pub fn __nextafterl(__x: u128, __y: u128) -> u128; - pub fn __nexttowardl(__x: u128, __y: u128) -> u128; - pub fn __remainderl(__x: u128, __y: u128) -> u128; - pub fn __scalbnl(__x: u128, __n: ::core::ffi::c_int) -> u128; - pub fn __ilogbl(__x: u128) -> ::core::ffi::c_int; - pub fn __scalblnl(__x: u128, __n: ::core::ffi::c_long) -> u128; - pub fn __nearbyintl(__x: u128) -> u128; - pub fn __roundl(__x: u128) -> u128; - pub fn __truncl(__x: u128) -> u128; - pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::core::ffi::c_int) -> u128; - pub fn __lrintl(__x: u128) -> ::core::ffi::c_long; - pub fn __llrintl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __lroundl(__x: u128) -> ::core::ffi::c_long; - pub fn __llroundl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __fdiml(__x: u128, __y: u128) -> u128; - pub fn __fmaxl(__x: u128, __y: u128) -> u128; - pub fn __fminl(__x: u128, __y: u128) -> u128; - pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128; - pub fn __scalbl(__x: u128, __n: u128) -> u128; pub fn strlcat( dst: *mut ::core::ffi::c_char, src: *const ::core::ffi::c_char, @@ -30807,6 +28082,21 @@ extern "C" { src: *const ::core::ffi::c_char, siz: usize, ) -> usize; + pub fn pqGetpwuid( + uid: uid_t, + resultbuf: *mut passwd, + buffer: *mut ::core::ffi::c_char, + buflen: usize, + result: *mut *mut passwd, + ) -> ::core::ffi::c_int; + pub fn pqGethostbyname( + name: *const ::core::ffi::c_char, + resultbuf: *mut hostent, + buffer: *mut ::core::ffi::c_char, + buflen: usize, + result: *mut *mut hostent, + herrno: *mut ::core::ffi::c_int, + ) -> ::core::ffi::c_int; pub fn pg_qsort( base: *mut ::core::ffi::c_void, nel: usize, @@ -30833,6 +28123,13 @@ extern "C" { ctype: *const ::core::ffi::c_char, write_message: bool, ) -> ::core::ffi::c_int; + pub fn inet_net_ntop( + af: ::core::ffi::c_int, + src: *const ::core::ffi::c_void, + bits: ::core::ffi::c_int, + dst: *mut ::core::ffi::c_char, + size: usize, + ) -> *mut ::core::ffi::c_char; pub fn pg_strong_random(buf: *mut ::core::ffi::c_void, len: usize) -> bool; pub fn pg_check_dir(dir: *const ::core::ffi::c_char) -> ::core::ffi::c_int; pub fn pg_mkdir_p( @@ -30952,6 +28249,12 @@ extern "C" { pub fn pnstrdup(in_: *const ::core::ffi::c_char, len: Size) -> *mut ::core::ffi::c_char; pub fn pchomp(in_: *const ::core::ffi::c_char) -> *mut ::core::ffi::c_char; pub fn psprintf(fmt: *const ::core::ffi::c_char, ...) -> *mut ::core::ffi::c_char; + pub fn pvsnprintf( + buf: *mut ::core::ffi::c_char, + len: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> usize; pub fn fmgr_info(functionId: Oid, finfo: *mut FmgrInfo); pub fn fmgr_info_cxt(functionId: Oid, finfo: *mut FmgrInfo, mcxt: MemoryContext); pub fn fmgr_info_copy(dstinfo: *mut FmgrInfo, srcinfo: *mut FmgrInfo, destcxt: MemoryContext); @@ -31700,6 +29003,11 @@ extern "C" { pub fn initStringInfo(str_: StringInfo); pub fn resetStringInfo(str_: StringInfo); pub fn appendStringInfo(str_: StringInfo, fmt: *const ::core::ffi::c_char, ...); + pub fn appendStringInfoVA( + str_: StringInfo, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn appendStringInfoString(str_: StringInfo, s: *const ::core::ffi::c_char); pub fn appendStringInfoChar(str_: StringInfo, ch: ::core::ffi::c_char); pub fn appendStringInfoSpaces(str_: StringInfo, count: ::core::ffi::c_int); @@ -35765,6 +33073,24 @@ extern "C" { wantPage: XLogRecPtr, wantLength: uint32, ); + pub fn IsSystemRelation(relation: Relation) -> bool; + pub fn IsToastRelation(relation: Relation) -> bool; + pub fn IsCatalogRelation(relation: Relation) -> bool; + pub fn IsInplaceUpdateRelation(relation: Relation) -> bool; + pub fn IsSystemClass(relid: Oid, reltuple: Form_pg_class) -> bool; + pub fn IsToastClass(reltuple: Form_pg_class) -> bool; + pub fn IsCatalogRelationOid(relid: Oid) -> bool; + pub fn IsInplaceUpdateOid(relid: Oid) -> bool; + pub fn IsCatalogNamespace(namespaceId: Oid) -> bool; + pub fn IsToastNamespace(namespaceId: Oid) -> bool; + pub fn IsReservedName(name: *const ::core::ffi::c_char) -> bool; + pub fn IsSharedRelation(relationId: Oid) -> bool; + pub fn GetNewOidWithIndex(relation: Relation, indexId: Oid, oidcolumn: AttrNumber) -> Oid; + pub fn GetNewRelFileNode( + reltablespace: Oid, + pg_class: Relation, + relpersistence: ::core::ffi::c_char, + ) -> Oid; pub fn AcquireDeletionLock(object: *const ObjectAddress, flags: ::core::ffi::c_int); pub fn ReleaseDeletionLock(object: *const ObjectAddress); pub fn performDeletion( @@ -43825,6 +41151,12 @@ extern "C" { dst: *mut ::core::ffi::c_char, size: usize, ) -> *mut ::core::ffi::c_char; + pub fn inet_net_pton( + af: ::core::ffi::c_int, + src: *const ::core::ffi::c_char, + dst: *mut ::core::ffi::c_void, + size: usize, + ) -> ::core::ffi::c_int; pub fn convert_network_to_scalar(value: Datum, typid: Oid, failure: *mut bool) -> f64; pub fn network_scan_first(in_: Datum) -> Datum; pub fn network_scan_last(in_: Datum) -> Datum; @@ -48402,6 +45734,14 @@ pub const XmlExprOp_IS_DOCUMENT: u32 = 7; pub const XmlOptionType_XMLOPTION_DOCUMENT: u32 = 0; #[deprecated(since = "0.12.0", note = "you want pg_sys::XmlOptionType::XMLOPTION_CONTENT")] pub const XmlOptionType_XMLOPTION_CONTENT: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_TID")] +pub const __pid_type_F_OWNER_TID: u32 = 0; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PID")] +pub const __pid_type_F_OWNER_PID: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PGRP")] +pub const __pid_type_F_OWNER_PGRP: u32 = 2; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_GID")] +pub const __pid_type_F_OWNER_GID: u32 = 2; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_STREAM")] pub const __socket_type_SOCK_STREAM: u32 = 1; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_DGRAM")] diff --git a/pgrx-pg-sys/src/include/pg13.rs b/pgrx-pg-sys/src/include/pg13.rs index b1a23c103f..2c9b73a1e5 100644 --- a/pgrx-pg-sys/src/include/pg13.rs +++ b/pgrx-pg-sys/src/include/pg13.rs @@ -22,28 +22,51 @@ 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]; + fn extract_bit(byte: u8, index: usize) -> bool { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } #[inline] - pub fn set_bit(&mut self, index: usize, val: bool) { + pub fn get_bit(&self, index: usize) -> 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 byte = self.storage.as_ref()[byte_index]; + Self::extract_bit(byte, index) + } + #[inline] + pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); + Self::extract_bit(byte, index) + } + #[inline] + fn change_bit(byte: u8, index: usize, val: bool) -> u8 { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { - *byte |= mask; + byte | mask } else { - *byte &= !mask; + byte & !mask } } #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + *byte = Self::change_bit(*byte, index, val); + } + #[inline] + pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); + *byte = Self::change_bit(*byte, index, val); + } + #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -59,6 +82,21 @@ where val } #[inline] + pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if Self::raw_get_bit(this, i + bit_offset) { + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + val |= 1 << index; + } + } + val + } + #[inline] pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -70,6 +108,18 @@ where self.set_bit(index + bit_offset, val_bit_is_set); } } + #[inline] + pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); + } + } } #[repr(C)] #[derive(Default)] @@ -126,51 +176,25 @@ pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; pub const DEF_PGPORT: u32 = 28813; -#[allow(unsafe_code)] -pub const DEF_PGPORT_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"28813\0") }; +pub const DEF_PGPORT_STR: &::core::ffi::CStr = c"28813"; pub const ENABLE_THREAD_SAFETY: u32 = 1; -#[allow(unsafe_code)] -pub const INT64_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; +pub const INT64_MODIFIER: &::core::ffi::CStr = c"l"; pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; -#[allow(unsafe_code)] -pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql-bugs@lists.postgresql.org\0") -}; -#[allow(unsafe_code)] -pub const PACKAGE_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL 13.18\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_TARNAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_URL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"https://www.postgresql.org/\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"13.18\0") }; -#[allow(unsafe_code)] -pub const PG_KRB_SRVNAM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres\0") }; -#[allow(unsafe_code)] -pub const PG_MAJORVERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"13\0") }; +pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = c"pgsql-bugs@lists.postgresql.org"; +pub const PACKAGE_NAME: &::core::ffi::CStr = c"PostgreSQL"; +pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 13.20"; +pub const PACKAGE_TARNAME: &::core::ffi::CStr = c"postgresql"; +pub const PACKAGE_URL: &::core::ffi::CStr = c"https://www.postgresql.org/"; +pub const PACKAGE_VERSION: &::core::ffi::CStr = c"13.20"; +pub const PG_KRB_SRVNAM: &::core::ffi::CStr = c"postgres"; +pub const PG_MAJORVERSION: &::core::ffi::CStr = c"13"; pub const PG_MAJORVERSION_NUM: u32 = 13; -pub const PG_MINORVERSION_NUM: u32 = 18; +pub const PG_MINORVERSION_NUM: u32 = 20; pub const PG_USE_STDBOOL: u32 = 1; -#[allow(unsafe_code)] -pub const PG_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"13.18\0") }; -pub const PG_VERSION_NUM: u32 = 130018; -#[allow(unsafe_code)] -pub const PG_VERSION_STR: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"PostgreSQL 13.18 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0") -}; +pub const PG_VERSION: &::core::ffi::CStr = c"13.20"; +pub const PG_VERSION_NUM: u32 = 130020; +pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 13.20 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -200,351 +224,15 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -#[allow(unsafe_code)] -pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -#[allow(unsafe_code)] -pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = c"/tmp"; +pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = c"PostgreSQL"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -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 = 35; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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_C2X: 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_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: 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 _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; -#[allow(unsafe_code)] -pub const P_tmpdir: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -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 __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 __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -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 __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 __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 __PTHREAD_MUTEX_HAVE_PREV: 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 EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; -pub const __bool_true_false_are_defined: u32 = 1; -pub const true_: u32 = 1; -pub const false_: u32 = 0; -#[allow(unsafe_code)] -pub const INT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%ld\0") }; -#[allow(unsafe_code)] -pub const UINT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%lu\0") }; +pub const SIG_ATOMIC_WIDTH: u32 = 32; +pub const INT64_FORMAT: &::core::ffi::CStr = c"%ld"; +pub const UINT64_FORMAT: &::core::ffi::CStr = c"%lu"; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; pub const PG_UINT8_MAX: u32 = 255; @@ -563,453 +251,16 @@ pub const STATUS_ERROR: i32 = -1; pub const STATUS_EOF: i32 = -2; pub const STATUS_WAITING: u32 = 2; pub const PG_BINARY: u32 = 0; -#[allow(unsafe_code)] -pub const PG_BINARY_A: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"a\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_R: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"r\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_W: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"w\0") }; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INET_ADDRSTRLEN: u32 = 16; -pub const INET6_ADDRSTRLEN: u32 = 46; -#[allow(unsafe_code)] -pub const _PATH_HEQUIV: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts.equiv\0") }; -#[allow(unsafe_code)] -pub const _PATH_HOSTS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts\0") }; -#[allow(unsafe_code)] -pub const _PATH_NETWORKS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/networks\0") }; -#[allow(unsafe_code)] -pub const _PATH_NSSWITCH_CONF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/nsswitch.conf\0") }; -#[allow(unsafe_code)] -pub const _PATH_PROTOCOLS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/protocols\0") }; -#[allow(unsafe_code)] -pub const _PATH_SERVICES: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/services\0") }; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const NSS_BUFLEN_PASSWD: u32 = 1024; +pub const PG_BINARY_A: &::core::ffi::CStr = c"a"; +pub const PG_BINARY_R: &::core::ffi::CStr = c"r"; +pub const PG_BINARY_W: &::core::ffi::CStr = c"w"; pub const PGINVALID_SOCKET: i32 = -1; -#[allow(unsafe_code)] -pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres (PostgreSQL) 13.18\n\0") }; -#[allow(unsafe_code)] -pub const EXE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const DEVNULL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/dev/null\0") }; +pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 13.20\n"; +pub const EXE: &::core::ffi::CStr = c""; +pub const DEVNULL: &::core::ffi::CStr = c"/dev/null"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -1021,7 +272,6 @@ pub const COMMERROR: u32 = 16; pub const INFO: u32 = 17; pub const NOTICE: u32 = 18; pub const WARNING: u32 = 19; -pub const ERROR: u32 = 20; pub const FATAL: u32 = 21; pub const PANIC: u32 = 22; pub const LOG_DESTINATION_STDERR: u32 = 1; @@ -1079,131 +329,8 @@ pub const LP_DEAD: u32 = 3; pub const SpecTokenOffsetNumber: u32 = 65534; pub const MovedPartitionsOffsetNumber: u32 = 65533; pub const FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; -pub const PG_O_DIRECT: u32 = 0; +pub const PG_O_DIRECT: u32 = 16384; pub const OPEN_SYNC_FLAG: u32 = 1052672; pub const OPEN_DATASYNC_FLAG: u32 = 4096; pub const FirstGenbkiObjectId: u32 = 10000; @@ -1509,27 +636,10 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -#[allow(unsafe_code)] -pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Pg_magic_func\0") }; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = c"Pg_magic_func"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const PARAM_FLAG_CONST: u32 = 1; @@ -1575,101 +685,17 @@ pub const OUTER_VAR: u32 = 65001; pub const INDEX_VAR: u32 = 65002; pub const PRS2_OLD_VARNO: u32 = 1; pub const PRS2_NEW_VARNO: u32 = 2; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_dynshmem\0") }; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"mmap.\0") }; +pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = c"pg_dynshmem"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = c"mmap."; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const SIZEOF_DSA_POINTER: u32 = 8; -#[allow(unsafe_code)] -pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%016lx\0") }; +pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = c"%016lx"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1689,14 +715,8 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; pub const NO_MAX_DSIZE: i32 = -1; -pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; -pub const MAXNAMLEN: u32 = 255; -#[allow(unsafe_code)] -pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; -#[allow(unsafe_code)] -pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; +pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = c"pgsql_tmp"; +pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = c"pgsql_tmp"; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const MAX_TIMESTAMP_PRECISION: u32 = 6; pub const MAX_INTERVAL_PRECISION: u32 = 6; @@ -1723,9 +743,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -#[allow(unsafe_code)] -pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_internal.init\0") }; +pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = c"pg_internal.init"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; @@ -1862,40 +880,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const NSIG: u32 = 65; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const __sigstack_defined: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1936,10 +924,7 @@ pub const AUTH_REQ_SASL_CONT: u32 = 11; pub const AUTH_REQ_SASL_FIN: u32 = 12; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -#[allow(unsafe_code)] -pub const VALID_XFN_CHARS: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"0123456789ABCDEF.history.backup.partial\0") -}; +pub const VALID_XFN_CHARS: &::core::ffi::CStr = c"0123456789ABCDEF.history.backup.partial"; pub const CATALOG_VERSION_NO: u32 = 202007201; pub const OIDCHARS: u32 = 10; pub const FORKNAMECHARS: u32 = 4; @@ -2017,18 +1002,10 @@ pub const INVALID_PGPROCNO: u32 = 2147483647; pub const DELAY_CHKPT_START: u32 = 1; pub const DELAY_CHKPT_COMPLETE: u32 = 2; pub const NUM_AUXILIARY_PROCS: u32 = 4; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/global.stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/global.tmp\0") }; -#[allow(unsafe_code)] -pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat_tmp\0") }; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = c"pg_stat"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = c"pg_stat/global.stat"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = c"pg_stat/global.tmp"; +pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = c"pg_stat_tmp"; pub const PGSTAT_MAX_MSG_SIZE: u32 = 1000; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638941; pub const PG_WAIT_LWLOCK: u32 = 16777216; @@ -2073,30 +1050,14 @@ pub const CHECKPOINT_CAUSE_XLOG: u32 = 128; pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -#[allow(unsafe_code)] -pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"recovery.signal\0") }; -#[allow(unsafe_code)] -pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"standby.signal\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label.old\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map.old\0") }; -#[allow(unsafe_code)] -pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"promote\0") }; -#[allow(unsafe_code)] -pub const FALLBACK_PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"fallback_promote\0") }; +pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = c"recovery.signal"; +pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = c"standby.signal"; +pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = c"backup_label"; +pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = c"backup_label.old"; +pub const TABLESPACE_MAP: &::core::ffi::CStr = c"tablespace_map"; +pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = c"tablespace_map.old"; +pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = c"promote"; +pub const FALLBACK_PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = c"fallback_promote"; pub const XLOG_PAGE_MAGIC: u32 = 53510; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -2107,12 +1068,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -#[allow(unsafe_code)] -pub const XLOGDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_wal\0") }; -#[allow(unsafe_code)] -pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"global/pg_control\0") }; +pub const XLOGDIR: &::core::ffi::CStr = c"pg_wal"; +pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = c"global/pg_control"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const RelationRelationId: Oid = Oid(1259); @@ -2241,9 +1198,7 @@ pub const F_HAS_GARBAGE: u32 = 16; pub const GIST_PAGE_ID: u32 = 65409; pub const EOH_HEADER_MAGIC: i32 = -1; pub const EA_MAGIC: u32 = 689375833; -#[allow(unsafe_code)] -pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql.auto.conf\0") }; +pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = c"postgresql.auto.conf"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -2270,9 +1225,7 @@ pub const GUC_UNIT_TIME: u32 = 983040; pub const GUC_EXPLAIN: u32 = 1048576; pub const GUC_ALLOW_IN_PARALLEL: u32 = 2097152; pub const GUC_UNIT: u32 = 1044480; -#[allow(unsafe_code)] -pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"heap\0") }; +pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = c"heap"; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; pub const TABLE_INSERT_NO_LOGICAL: u32 = 8; @@ -2301,87 +1254,33 @@ pub const INTERVAL_FULL_RANGE: u32 = 32767; pub const INTERVAL_RANGE_MASK: u32 = 32767; pub const INTERVAL_FULL_PRECISION: u32 = 65535; pub const INTERVAL_PRECISION_MASK: u32 = 65535; -#[allow(unsafe_code)] -pub const DAGO: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ago\0") }; -#[allow(unsafe_code)] -pub const DCURRENT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current\0") }; -#[allow(unsafe_code)] -pub const EPOCH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"epoch\0") }; -#[allow(unsafe_code)] -pub const INVALID: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"invalid\0") }; -#[allow(unsafe_code)] -pub const EARLY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-infinity\0") }; -#[allow(unsafe_code)] -pub const LATE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"infinity\0") }; -#[allow(unsafe_code)] -pub const NOW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"now\0") }; -#[allow(unsafe_code)] -pub const TODAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"today\0") }; -#[allow(unsafe_code)] -pub const TOMORROW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tomorrow\0") }; -#[allow(unsafe_code)] -pub const YESTERDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"yesterday\0") }; -#[allow(unsafe_code)] -pub const ZULU: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"zulu\0") }; -#[allow(unsafe_code)] -pub const DMICROSEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"usecond\0") }; -#[allow(unsafe_code)] -pub const DMILLISEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"msecond\0") }; -#[allow(unsafe_code)] -pub const DSECOND: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"second\0") }; -#[allow(unsafe_code)] -pub const DMINUTE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"minute\0") }; -#[allow(unsafe_code)] -pub const DHOUR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hour\0") }; -#[allow(unsafe_code)] -pub const DDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"day\0") }; -#[allow(unsafe_code)] -pub const DWEEK: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"week\0") }; -#[allow(unsafe_code)] -pub const DMONTH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"month\0") }; -#[allow(unsafe_code)] -pub const DQUARTER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"quarter\0") }; -#[allow(unsafe_code)] -pub const DYEAR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"year\0") }; -#[allow(unsafe_code)] -pub const DDECADE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"decade\0") }; -#[allow(unsafe_code)] -pub const DCENTURY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"century\0") }; -#[allow(unsafe_code)] -pub const DMILLENNIUM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"millennium\0") }; -#[allow(unsafe_code)] -pub const DA_D: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ad\0") }; -#[allow(unsafe_code)] -pub const DB_C: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"bc\0") }; -#[allow(unsafe_code)] -pub const DTIMEZONE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"timezone\0") }; +pub const DAGO: &::core::ffi::CStr = c"ago"; +pub const DCURRENT: &::core::ffi::CStr = c"current"; +pub const EPOCH: &::core::ffi::CStr = c"epoch"; +pub const INVALID: &::core::ffi::CStr = c"invalid"; +pub const EARLY: &::core::ffi::CStr = c"-infinity"; +pub const LATE: &::core::ffi::CStr = c"infinity"; +pub const NOW: &::core::ffi::CStr = c"now"; +pub const TODAY: &::core::ffi::CStr = c"today"; +pub const TOMORROW: &::core::ffi::CStr = c"tomorrow"; +pub const YESTERDAY: &::core::ffi::CStr = c"yesterday"; +pub const ZULU: &::core::ffi::CStr = c"zulu"; +pub const DMICROSEC: &::core::ffi::CStr = c"usecond"; +pub const DMILLISEC: &::core::ffi::CStr = c"msecond"; +pub const DSECOND: &::core::ffi::CStr = c"second"; +pub const DMINUTE: &::core::ffi::CStr = c"minute"; +pub const DHOUR: &::core::ffi::CStr = c"hour"; +pub const DDAY: &::core::ffi::CStr = c"day"; +pub const DWEEK: &::core::ffi::CStr = c"week"; +pub const DMONTH: &::core::ffi::CStr = c"month"; +pub const DQUARTER: &::core::ffi::CStr = c"quarter"; +pub const DYEAR: &::core::ffi::CStr = c"year"; +pub const DDECADE: &::core::ffi::CStr = c"decade"; +pub const DCENTURY: &::core::ffi::CStr = c"century"; +pub const DMILLENNIUM: &::core::ffi::CStr = c"millennium"; +pub const DA_D: &::core::ffi::CStr = c"ad"; +pub const DB_C: &::core::ffi::CStr = c"bc"; +pub const DTIMEZONE: &::core::ffi::CStr = c"timezone"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -2500,9 +1399,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -#[allow(unsafe_code)] -pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"btree\0") }; +pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = c"btree"; pub const INDEX_CREATE_IS_PRIMARY: u32 = 1; pub const INDEX_CREATE_ADD_CONSTRAINT: u32 = 2; pub const INDEX_CREATE_SKIP_BUILD: u32 = 4; @@ -2971,9 +1868,7 @@ pub const ACL_USAGE_CHR: u8 = 85u8; pub const ACL_CREATE_CHR: u8 = 67u8; pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; -#[allow(unsafe_code)] -pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"arwdDxtXUCTc\0") }; +pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = c"arwdDxtXUCTc"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -3395,12 +2290,8 @@ pub const PLPGSQL_XCHECK_STRICTMULTIASSIGNMENT: u32 = 8; pub const POSTMASTER_FD_WATCH: u32 = 0; pub const POSTMASTER_FD_OWN: u32 = 1; pub const MAX_BACKENDS: u32 = 262143; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles\0") }; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles.tmp\0") }; +pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = c"current_logfiles"; +pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = c"current_logfiles.tmp"; pub const RBTXN_HAS_CATALOG_CHANGES: u32 = 1; pub const RBTXN_IS_SUBXACT: u32 = 2; pub const RBTXN_IS_SERIALIZED: u32 = 4; @@ -6142,139 +5033,20 @@ pub const RANGESTRAT_CONTAINS: u32 = 7; pub const RANGESTRAT_CONTAINED_BY: u32 = 8; pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; pub const RANGESTRAT_EQ: u32 = 18; +pub const PGERROR: u32 = 20; pub type pg_int64 = ::core::ffi::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::core::ffi::c_uchar; -pub type __u_short = ::core::ffi::c_ushort; -pub type __u_int = ::core::ffi::c_uint; -pub type __u_long = ::core::ffi::c_ulong; -pub type __int8_t = ::core::ffi::c_schar; -pub type __uint8_t = ::core::ffi::c_uchar; -pub type __int16_t = ::core::ffi::c_short; -pub type __uint16_t = ::core::ffi::c_ushort; -pub type __int32_t = ::core::ffi::c_int; -pub type __uint32_t = ::core::ffi::c_uint; -pub type __int64_t = ::core::ffi::c_long; -pub type __uint64_t = ::core::ffi::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::core::ffi::c_long; -pub type __u_quad_t = ::core::ffi::c_ulong; -pub type __intmax_t = ::core::ffi::c_long; -pub type __uintmax_t = ::core::ffi::c_ulong; -pub type __dev_t = ::core::ffi::c_ulong; pub type __uid_t = ::core::ffi::c_uint; pub type __gid_t = ::core::ffi::c_uint; pub type __ino_t = ::core::ffi::c_ulong; -pub type __ino64_t = ::core::ffi::c_ulong; pub type __mode_t = ::core::ffi::c_uint; -pub type __nlink_t = ::core::ffi::c_ulong; pub type __off_t = ::core::ffi::c_long; pub type __off64_t = ::core::ffi::c_long; pub type __pid_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::core::ffi::c_int; 2usize], -} -pub type __clock_t = ::core::ffi::c_long; -pub type __rlim_t = ::core::ffi::c_ulong; -pub type __rlim64_t = ::core::ffi::c_ulong; -pub type __id_t = ::core::ffi::c_uint; pub type __time_t = ::core::ffi::c_long; -pub type __useconds_t = ::core::ffi::c_uint; -pub type __suseconds_t = ::core::ffi::c_long; -pub type __suseconds64_t = ::core::ffi::c_long; -pub type __daddr_t = ::core::ffi::c_int; -pub type __key_t = ::core::ffi::c_int; -pub type __clockid_t = ::core::ffi::c_int; -pub type __timer_t = *mut ::core::ffi::c_void; -pub type __blksize_t = ::core::ffi::c_long; -pub type __blkcnt_t = ::core::ffi::c_long; -pub type __blkcnt64_t = ::core::ffi::c_long; -pub type __fsblkcnt_t = ::core::ffi::c_ulong; -pub type __fsblkcnt64_t = ::core::ffi::c_ulong; -pub type __fsfilcnt_t = ::core::ffi::c_ulong; -pub type __fsfilcnt64_t = ::core::ffi::c_ulong; -pub type __fsword_t = ::core::ffi::c_long; -pub type __ssize_t = ::core::ffi::c_long; pub type __syscall_slong_t = ::core::ffi::c_long; -pub type __syscall_ulong_t = ::core::ffi::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::core::ffi::c_char; -pub type __intptr_t = ::core::ffi::c_long; pub type __socklen_t = ::core::ffi::c_uint; pub type __sig_atomic_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::core::ffi::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::core::ffi::c_uint, - pub __wchb: [::core::ffi::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -6335,467 +5107,21 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub type wchar_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::core::ffi::c_int, - pub rem: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::core::ffi::c_long, - pub rem: ::core::ffi::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::core::ffi::c_longlong, - pub rem: ::core::ffi::c_longlong, -} -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 = ::core::ffi::c_ulong; -pub type ushort = ::core::ffi::c_ushort; -pub type uint = ::core::ffi::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::core::ffi::c_long; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct __sigset_t { pub __val: [::core::ffi::c_ulong; 16usize], } -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct timespec { pub tv_sec: __time_t, pub tv_nsec: __syscall_slong_t, } -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::core::ffi::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -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: ::core::ffi::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::core::ffi::c_uint, - pub __high: ::core::ffi::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::core::ffi::c_int, - pub __count: ::core::ffi::c_uint, - pub __owner: ::core::ffi::c_int, - pub __nusers: ::core::ffi::c_uint, - pub __kind: ::core::ffi::c_int, - pub __spins: ::core::ffi::c_short, - pub __elision: ::core::ffi::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::core::ffi::c_uint, - pub __writers: ::core::ffi::c_uint, - pub __wrphase_futex: ::core::ffi::c_uint, - pub __writers_futex: ::core::ffi::c_uint, - pub __pad3: ::core::ffi::c_uint, - pub __pad4: ::core::ffi::c_uint, - pub __cur_writer: ::core::ffi::c_int, - pub __shared: ::core::ffi::c_int, - pub __rwelision: ::core::ffi::c_schar, - pub __pad1: [::core::ffi::c_uchar; 7usize], - pub __pad2: ::core::ffi::c_ulong, - pub __flags: ::core::ffi::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::core::ffi::c_uint; 2usize], - pub __g_size: [::core::ffi::c_uint; 2usize], - pub __g1_orig_size: ::core::ffi::c_uint, - pub __wrefs: ::core::ffi::c_uint, - pub __g_signals: [::core::ffi::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::core::ffi::c_uint; -pub type __thrd_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::core::ffi::c_int, -} -pub type pthread_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::core::ffi::c_uint; -pub type pthread_once_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::core::ffi::c_char; 40usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::core::ffi::c_char; 48usize], - pub __align: ::core::ffi::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::core::ffi::c_char; 8usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::core::ffi::c_char; 32usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::core::ffi::c_int, - pub rand_deg: ::core::ffi::c_int, - pub rand_sep: ::core::ffi::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::core::ffi::c_ushort; 3usize], - pub __old_x: [::core::ffi::c_ushort; 3usize], - pub __c: ::core::ffi::c_ushort, - pub __init: ::core::ffi::c_ushort, - pub __a: ::core::ffi::c_ulonglong, -} -pub type __compar_fn_t = ::core::option::Option< - unsafe extern "C" fn( - arg1: *const ::core::ffi::c_void, - arg2: *const ::core::ffi::c_void, - ) -> ::core::ffi::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::core::ffi::c_ushort, - pub __ctype_tolower: *const ::core::ffi::c_int, - pub __ctype_toupper: *const ::core::ffi::c_int, - pub __names: [*const ::core::ffi::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::core::ffi::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -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 = ::core::ffi::c_schar; -pub type int_fast16_t = ::core::ffi::c_long; -pub type int_fast32_t = ::core::ffi::c_long; -pub type int_fast64_t = ::core::ffi::c_long; -pub type uint_fast8_t = ::core::ffi::c_uchar; -pub type uint_fast16_t = ::core::ffi::c_ulong; -pub type uint_fast32_t = ::core::ffi::c_ulong; -pub type uint_fast64_t = ::core::ffi::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::core::ffi::c_char, - pub thousands_sep: *mut ::core::ffi::c_char, - pub grouping: *mut ::core::ffi::c_char, - pub int_curr_symbol: *mut ::core::ffi::c_char, - pub currency_symbol: *mut ::core::ffi::c_char, - pub mon_decimal_point: *mut ::core::ffi::c_char, - pub mon_thousands_sep: *mut ::core::ffi::c_char, - pub mon_grouping: *mut ::core::ffi::c_char, - pub positive_sign: *mut ::core::ffi::c_char, - pub negative_sign: *mut ::core::ffi::c_char, - pub int_frac_digits: ::core::ffi::c_char, - pub frac_digits: ::core::ffi::c_char, - pub p_cs_precedes: ::core::ffi::c_char, - pub p_sep_by_space: ::core::ffi::c_char, - pub n_cs_precedes: ::core::ffi::c_char, - pub n_sep_by_space: ::core::ffi::c_char, - pub p_sign_posn: ::core::ffi::c_char, - pub n_sign_posn: ::core::ffi::c_char, - pub int_p_cs_precedes: ::core::ffi::c_char, - pub int_p_sep_by_space: ::core::ffi::c_char, - pub int_n_cs_precedes: ::core::ffi::c_char, - pub int_n_sep_by_space: ::core::ffi::c_char, - pub int_p_sign_posn: ::core::ffi::c_char, - pub int_n_sign_posn: ::core::ffi::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_funcptr_t = ::core::option::Option; pub type Pointer = *mut ::core::ffi::c_char; pub type int8 = ::core::ffi::c_schar; @@ -6927,57 +5253,9 @@ impl Default for PGAlignedXLogBlock { } } } -pub mod _bindgen_ty_1 { - pub type Type = ::core::ffi::c_uint; - pub const _ISupper: Type = 256; - pub const _ISlower: Type = 512; - pub const _ISalpha: Type = 1024; - pub const _ISdigit: Type = 2048; - pub const _ISxdigit: Type = 4096; - pub const _ISspace: Type = 8192; - pub const _ISprint: Type = 16384; - pub const _ISgraph: Type = 32768; - pub const _ISblank: Type = 1; - pub const _IScntrl: Type = 2; - pub const _ISpunct: Type = 4; - pub const _ISalnum: Type = 8; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::core::ffi::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type socklen_t = __socklen_t; -pub mod __socket_type { - pub type Type = ::core::ffi::c_uint; - pub const SOCK_STREAM: Type = 1; - pub const SOCK_DGRAM: Type = 2; - pub const SOCK_RAW: Type = 3; - pub const SOCK_RDM: Type = 4; - pub const SOCK_SEQPACKET: Type = 5; - pub const SOCK_DCCP: Type = 6; - pub const SOCK_PACKET: Type = 10; - pub const SOCK_CLOEXEC: Type = 524288; - pub const SOCK_NONBLOCK: Type = 2048; -} pub type sa_family_t = ::core::ffi::c_ushort; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::core::ffi::c_char; 14usize], -} -#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr_storage { pub ss_family: sa_family_t, @@ -6993,404 +5271,6 @@ impl Default for sockaddr_storage { } } } -pub mod _bindgen_ty_2 { - pub type Type = ::core::ffi::c_uint; - pub const MSG_OOB: Type = 1; - pub const MSG_PEEK: Type = 2; - pub const MSG_DONTROUTE: Type = 4; - pub const MSG_CTRUNC: Type = 8; - pub const MSG_PROXY: Type = 16; - pub const MSG_TRUNC: Type = 32; - pub const MSG_DONTWAIT: Type = 64; - pub const MSG_EOR: Type = 128; - pub const MSG_WAITALL: Type = 256; - pub const MSG_FIN: Type = 512; - pub const MSG_SYN: Type = 1024; - pub const MSG_CONFIRM: Type = 2048; - pub const MSG_RST: Type = 4096; - pub const MSG_ERRQUEUE: Type = 8192; - pub const MSG_NOSIGNAL: Type = 16384; - pub const MSG_MORE: Type = 32768; - pub const MSG_WAITFORONE: Type = 65536; - pub const MSG_BATCH: Type = 262144; - pub const MSG_ZEROCOPY: Type = 67108864; - pub const MSG_FASTOPEN: Type = 536870912; - pub const MSG_CMSG_CLOEXEC: Type = 1073741824; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::core::ffi::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::core::ffi::c_void, - pub msg_controllen: usize, - pub msg_flags: ::core::ffi::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::core::ffi::c_int, - pub cmsg_type: ::core::ffi::c_int, - pub __cmsg_data: __IncompleteArrayField<::core::ffi::c_uchar>, -} -pub mod _bindgen_ty_3 { - pub type Type = ::core::ffi::c_uint; - pub const SCM_RIGHTS: Type = 1; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::core::ffi::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::core::option::Option; -pub type __kernel_key_t = ::core::ffi::c_int; -pub type __kernel_mqd_t = ::core::ffi::c_int; -pub type __kernel_old_uid_t = ::core::ffi::c_ushort; -pub type __kernel_old_gid_t = ::core::ffi::c_ushort; -pub type __kernel_old_dev_t = ::core::ffi::c_ulong; -pub type __kernel_long_t = ::core::ffi::c_long; -pub type __kernel_ulong_t = ::core::ffi::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::core::ffi::c_uint; -pub type __kernel_pid_t = ::core::ffi::c_int; -pub type __kernel_ipc_pid_t = ::core::ffi::c_int; -pub type __kernel_uid_t = ::core::ffi::c_uint; -pub type __kernel_gid_t = ::core::ffi::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::core::ffi::c_int; -pub type __kernel_uid32_t = ::core::ffi::c_uint; -pub type __kernel_gid32_t = ::core::ffi::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::core::ffi::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::core::ffi::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::core::ffi::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::core::ffi::c_int; -pub type __kernel_clockid_t = ::core::ffi::c_int; -pub type __kernel_caddr_t = *mut ::core::ffi::c_char; -pub type __kernel_uid16_t = ::core::ffi::c_ushort; -pub type __kernel_gid16_t = ::core::ffi::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::core::ffi::c_int, - pub l_linger: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::core::ffi::c_ushort, - pub sa_data: [::core::ffi::c_uchar; 14usize], -} -pub mod _bindgen_ty_4 { - pub type Type = ::core::ffi::c_uint; - pub const SHUT_RD: Type = 0; - pub const SHUT_WR: Type = 1; - pub const SHUT_RDWR: Type = 2; -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::core::ffi::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::core::ffi::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub mod _bindgen_ty_5 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_IP: Type = 0; - pub const IPPROTO_ICMP: Type = 1; - pub const IPPROTO_IGMP: Type = 2; - pub const IPPROTO_IPIP: Type = 4; - pub const IPPROTO_TCP: Type = 6; - pub const IPPROTO_EGP: Type = 8; - pub const IPPROTO_PUP: Type = 12; - pub const IPPROTO_UDP: Type = 17; - pub const IPPROTO_IDP: Type = 22; - pub const IPPROTO_TP: Type = 29; - pub const IPPROTO_DCCP: Type = 33; - pub const IPPROTO_IPV6: Type = 41; - pub const IPPROTO_RSVP: Type = 46; - pub const IPPROTO_GRE: Type = 47; - pub const IPPROTO_ESP: Type = 50; - pub const IPPROTO_AH: Type = 51; - pub const IPPROTO_MTP: Type = 92; - pub const IPPROTO_BEETPH: Type = 94; - pub const IPPROTO_ENCAP: Type = 98; - pub const IPPROTO_PIM: Type = 103; - pub const IPPROTO_COMP: Type = 108; - pub const IPPROTO_SCTP: Type = 132; - pub const IPPROTO_UDPLITE: Type = 136; - pub const IPPROTO_MPLS: Type = 137; - pub const IPPROTO_ETHERNET: Type = 143; - pub const IPPROTO_RAW: Type = 255; - pub const IPPROTO_MPTCP: Type = 262; - pub const IPPROTO_MAX: Type = 263; -} -pub mod _bindgen_ty_6 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_HOPOPTS: Type = 0; - pub const IPPROTO_ROUTING: Type = 43; - pub const IPPROTO_FRAGMENT: Type = 44; - pub const IPPROTO_ICMPV6: Type = 58; - pub const IPPROTO_NONE: Type = 59; - pub const IPPROTO_DSTOPTS: Type = 60; - pub const IPPROTO_MH: Type = 135; -} -pub type in_port_t = u16; -pub mod _bindgen_ty_7 { - pub type Type = ::core::ffi::c_uint; - pub const IPPORT_ECHO: Type = 7; - pub const IPPORT_DISCARD: Type = 9; - pub const IPPORT_SYSTAT: Type = 11; - pub const IPPORT_DAYTIME: Type = 13; - pub const IPPORT_NETSTAT: Type = 15; - pub const IPPORT_FTP: Type = 21; - pub const IPPORT_TELNET: Type = 23; - pub const IPPORT_SMTP: Type = 25; - pub const IPPORT_TIMESERVER: Type = 37; - pub const IPPORT_NAMESERVER: Type = 42; - pub const IPPORT_WHOIS: Type = 43; - pub const IPPORT_MTP: Type = 57; - pub const IPPORT_TFTP: Type = 69; - pub const IPPORT_RJE: Type = 77; - pub const IPPORT_FINGER: Type = 79; - pub const IPPORT_TTYLINK: Type = 87; - pub const IPPORT_SUPDUP: Type = 95; - pub const IPPORT_EXECSERVER: Type = 512; - pub const IPPORT_LOGINSERVER: Type = 513; - pub const IPPORT_CMDSERVER: Type = 514; - pub const IPPORT_EFSSERVER: Type = 520; - pub const IPPORT_BIFFUDP: Type = 512; - pub const IPPORT_WHOSERVER: Type = 513; - pub const IPPORT_ROUTESERVER: Type = 520; - pub const IPPORT_RESERVED: Type = 1024; - pub const IPPORT_USERRESERVED: Type = 5000; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::core::ffi::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::core::ffi::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::core::ffi::c_char, - pub r_aliases: *mut *mut ::core::ffi::c_char, - pub r_number: ::core::ffi::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::core::ffi::c_char, - pub n_aliases: *mut *mut ::core::ffi::c_char, - pub n_addrtype: ::core::ffi::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct hostent { @@ -7411,60 +5291,6 @@ impl Default for hostent { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::core::ffi::c_char, - pub s_aliases: *mut *mut ::core::ffi::c_char, - pub s_port: ::core::ffi::c_int, - pub s_proto: *mut ::core::ffi::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::core::ffi::c_char, - pub p_aliases: *mut *mut ::core::ffi::c_char, - pub p_proto: ::core::ffi::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::core::ffi::c_int, - pub ai_family: ::core::ffi::c_int, - pub ai_socktype: ::core::ffi::c_int, - pub ai_protocol: ::core::ffi::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::core::ffi::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct passwd { pub pw_name: *mut ::core::ffi::c_char, pub pw_passwd: *mut ::core::ffi::c_char, @@ -7484,16 +5310,6 @@ impl Default for passwd { } } pub type pgsocket = ::core::ffi::c_int; -pub type float_t = f32; -pub type double_t = f64; -pub mod _bindgen_ty_8 { - pub type Type = ::core::ffi::c_uint; - pub const FP_NAN: Type = 0; - pub const FP_INFINITE: Type = 1; - pub const FP_ZERO: Type = 2; - pub const FP_SUBNORMAL: Type = 3; - pub const FP_NORMAL: Type = 4; -} pub type qsort_arg_comparator = ::core::option::Option< unsafe extern "C" fn( a: *const ::core::ffi::c_void, @@ -7510,7 +5326,6 @@ pub struct __jmp_buf_tag { pub __mask_was_saved: ::core::ffi::c_int, pub __saved_mask: __sigset_t, } -pub type jmp_buf = [__jmp_buf_tag; 1usize]; pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -8493,6 +6308,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_off_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_off_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn lp_flags(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } } @@ -8504,6 +6341,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_flags_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 15usize, + 2u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_flags_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 15usize, + 2u8, + val as u64, + ) + } + } + #[inline] pub fn lp_len(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } } @@ -8515,6 +6374,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_len_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 17usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_len_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 17usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( lp_off: ::core::ffi::c_uint, lp_flags: ::core::ffi::c_uint, @@ -8567,34 +6448,6 @@ impl Default for HeapTupleData { } } pub type HeapTuple = *mut HeapTupleData; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::core::ffi::c_short, - pub l_whence: ::core::ffi::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::core::ffi::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; pub type TimeLineID = uint32; @@ -8910,36 +6763,6 @@ impl Default for TupleConversionMap { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::core::ffi::c_int, - pub tm_min: ::core::ffi::c_int, - pub tm_hour: ::core::ffi::c_int, - pub tm_mday: ::core::ffi::c_int, - pub tm_mon: ::core::ffi::c_int, - pub tm_year: ::core::ffi::c_int, - pub tm_wday: ::core::ffi::c_int, - pub tm_yday: ::core::ffi::c_int, - pub tm_isdst: ::core::ffi::c_int, - pub tm_gmtoff: ::core::ffi::c_long, - pub tm_zone: *const ::core::ffi::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} pub type instr_time = timespec; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] @@ -11682,18 +9505,6 @@ impl Default for dirent { } } } -pub mod _bindgen_ty_9 { - pub type Type = ::core::ffi::c_uint; - pub const DT_UNKNOWN: Type = 0; - pub const DT_FIFO: Type = 1; - pub const DT_CHR: Type = 2; - pub const DT_DIR: Type = 4; - pub const DT_BLK: Type = 6; - pub const DT_REG: Type = 8; - pub const DT_LNK: Type = 10; - pub const DT_SOCK: Type = 12; - pub const DT_WHT: Type = 14; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { @@ -17802,586 +15613,13 @@ pub mod TypeFuncClass { pub const TYPEFUNC_OTHER: Type = 4; } pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::core::ffi::c_int, - pub sival_ptr: *mut ::core::ffi::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::core::ffi::c_int, - pub si_errno: ::core::ffi::c_int, - pub si_code: ::core::ffi::c_int, - pub __pad0: ::core::ffi::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::core::ffi::c_int, - pub si_overrun: ::core::ffi::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::core::ffi::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::core::ffi::c_void, - pub si_addr_lsb: ::core::ffi::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::core::ffi::c_void, - pub _upper: *mut ::core::ffi::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::core::ffi::c_long, - pub si_fd: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::core::ffi::c_void, - pub _syscall: ::core::ffi::c_int, - pub _arch: ::core::ffi::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_10 { - pub type Type = ::core::ffi::c_int; - pub const SI_ASYNCNL: Type = -60; - pub const SI_DETHREAD: Type = -7; - pub const SI_TKILL: Type = -6; - pub const SI_SIGIO: Type = -5; - pub const SI_ASYNCIO: Type = -4; - pub const SI_MESGQ: Type = -3; - pub const SI_TIMER: Type = -2; - pub const SI_QUEUE: Type = -1; - pub const SI_USER: Type = 0; - pub const SI_KERNEL: Type = 128; -} -pub mod _bindgen_ty_11 { - pub type Type = ::core::ffi::c_uint; - pub const ILL_ILLOPC: Type = 1; - pub const ILL_ILLOPN: Type = 2; - pub const ILL_ILLADR: Type = 3; - pub const ILL_ILLTRP: Type = 4; - pub const ILL_PRVOPC: Type = 5; - pub const ILL_PRVREG: Type = 6; - pub const ILL_COPROC: Type = 7; - pub const ILL_BADSTK: Type = 8; - pub const ILL_BADIADDR: Type = 9; -} -pub mod _bindgen_ty_12 { - pub type Type = ::core::ffi::c_uint; - pub const FPE_INTDIV: Type = 1; - pub const FPE_INTOVF: Type = 2; - pub const FPE_FLTDIV: Type = 3; - pub const FPE_FLTOVF: Type = 4; - pub const FPE_FLTUND: Type = 5; - pub const FPE_FLTRES: Type = 6; - pub const FPE_FLTINV: Type = 7; - pub const FPE_FLTSUB: Type = 8; - pub const FPE_FLTUNK: Type = 14; - pub const FPE_CONDTRAP: Type = 15; -} -pub mod _bindgen_ty_13 { - pub type Type = ::core::ffi::c_uint; - pub const SEGV_MAPERR: Type = 1; - pub const SEGV_ACCERR: Type = 2; - pub const SEGV_BNDERR: Type = 3; - pub const SEGV_PKUERR: Type = 4; - pub const SEGV_ACCADI: Type = 5; - pub const SEGV_ADIDERR: Type = 6; - pub const SEGV_ADIPERR: Type = 7; - pub const SEGV_MTEAERR: Type = 8; - pub const SEGV_MTESERR: Type = 9; -} -pub mod _bindgen_ty_14 { - pub type Type = ::core::ffi::c_uint; - pub const BUS_ADRALN: Type = 1; - pub const BUS_ADRERR: Type = 2; - pub const BUS_OBJERR: Type = 3; - pub const BUS_MCEERR_AR: Type = 4; - pub const BUS_MCEERR_AO: Type = 5; -} -pub mod _bindgen_ty_15 { - pub type Type = ::core::ffi::c_uint; - pub const CLD_EXITED: Type = 1; - pub const CLD_KILLED: Type = 2; - pub const CLD_DUMPED: Type = 3; - pub const CLD_TRAPPED: Type = 4; - pub const CLD_STOPPED: Type = 5; - pub const CLD_CONTINUED: Type = 6; -} -pub mod _bindgen_ty_16 { - pub type Type = ::core::ffi::c_uint; - pub const POLL_IN: Type = 1; - pub const POLL_OUT: Type = 2; - pub const POLL_MSG: Type = 3; - pub const POLL_ERR: Type = 4; - pub const POLL_PRI: Type = 5; - pub const POLL_HUP: Type = 6; -} -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::core::ffi::c_int, - pub sigev_notify: ::core::ffi::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::core::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub mod _bindgen_ty_17 { +pub mod _bindgen_ty_19 { pub type Type = ::core::ffi::c_uint; pub const SIGEV_SIGNAL: Type = 0; pub const SIGEV_NONE: Type = 1; pub const SIGEV_THREAD: Type = 2; pub const SIGEV_THREAD_ID: Type = 4; } -pub type __sighandler_t = ::core::option::Option; -pub type sig_t = __sighandler_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::core::ffi::c_int, - pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::core::option::Option< - unsafe extern "C" fn( - arg1: ::core::ffi::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::core::ffi::c_void, - ), - >, -} -impl Default for sigaction__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigaction { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::core::ffi::c_ushort, - pub gs: ::core::ffi::c_ushort, - pub fs: ::core::ffi::c_ushort, - pub __pad0: ::core::ffi::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_flags: ::core::ffi::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type greg_t = ::core::ffi::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::core::ffi::c_ulonglong; 8usize], -} -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::core::ffi::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::core::ffi::c_ulonglong; 4usize], -} -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_18 { - pub type Type = ::core::ffi::c_uint; - pub const SS_ONSTACK: Type = 1; - pub const SS_DISABLE: Type = 2; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_onstack: ::core::ffi::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -18461,21 +15699,6 @@ pub mod AuxProcType { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::core::ffi::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct SockAddr { pub addr: sockaddr_storage, pub salen: socklen_t, @@ -24979,6 +22202,7 @@ pub struct ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { pub fcinfo_data: FunctionCallInfo, pub fn_addr: PGFunction, pub nargs: ::core::ffi::c_int, + pub make_ro: bool, } impl Default for ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { fn default() -> Self { @@ -28264,7 +25488,7 @@ pub mod PLpgSQL_stmt_type { pub const PLPGSQL_STMT_ROLLBACK: Type = 26; pub const PLPGSQL_STMT_SET: Type = 27; } -pub mod _bindgen_ty_19 { +pub mod _bindgen_ty_25 { pub type Type = ::core::ffi::c_uint; pub const PLPGSQL_RC_OK: Type = 0; pub const PLPGSQL_RC_EXIT: Type = 1; @@ -30134,6 +27358,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn haspos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_haspos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u32) } } @@ -30145,6 +27391,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 11u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 11u8, + val as u64, + ) + } + } + #[inline] pub fn pos(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -30156,6 +27424,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn pos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_pos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( haspos: uint32, len: uint32, @@ -30222,6 +27512,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn length_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 12u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_length_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 12u8, + val as u64, + ) + } + } + #[inline] pub fn distance(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -30233,6 +27545,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn distance_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_distance_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1(length: uint32, distance: uint32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 12u8, { @@ -30325,6 +27659,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn selected_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_selected_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn in_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } @@ -30336,6 +27692,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn in__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_in_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn replace(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } @@ -30347,6 +27725,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn replace_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 2usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_replace_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 2usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn repeated(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } @@ -30358,6 +27758,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn repeated_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 3usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_repeated_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 3usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn skip(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } @@ -30369,6 +27791,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn skip_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 4usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_skip_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 4usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn unused(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) } } @@ -30380,6 +27824,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn unused_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 5usize, + 3u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_unused_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 5usize, + 3u8, + val as u64, + ) + } + } + #[inline] pub fn type_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } } @@ -30391,6 +27857,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn type__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 8usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_type_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 8usize, + 8u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } } @@ -30402,6 +27890,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 16usize, + 16u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 16usize, + 16u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( selected: uint32, in_: uint32, @@ -31266,11 +28776,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -31335,58 +28840,13 @@ pub struct SnapBuild { pub _address: u8, } #[pgrx_macros::pg_guard] -extern "C" { - #[link_name = "\u{1}__isoc99_fscanf"] - pub fn fscanf1( - __stream: *mut FILE, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_scanf"] - pub fn scanf1(__format: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_sscanf"] - pub fn sscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vfscanf"] - pub fn vfscanf1( - __s: *mut FILE, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vscanf"] - pub fn vscanf1( - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vsscanf"] - pub fn vsscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - pub fn alloca(__size: ::core::ffi::c_ulong) -> *mut ::core::ffi::c_void; - pub fn atexit(__func: ::core::option::Option) -> ::core::ffi::c_int; - pub fn at_quick_exit( - __func: ::core::option::Option, - ) -> ::core::ffi::c_int; - pub fn __memcmpeq( - __s1: *const ::core::ffi::c_void, - __s2: *const ::core::ffi::c_void, - __n: usize, - ) -> ::core::ffi::c_int; +unsafe extern "C" { pub fn ExceptionalCondition( conditionName: *const ::core::ffi::c_char, errorType: *const ::core::ffi::c_char, fileName: *const ::core::ffi::c_char, lineNumber: ::core::ffi::c_int, ) -> !; - pub fn bindresvport6( - __sockfd: ::core::ffi::c_int, - __sock_in: *mut sockaddr_in6, - ) -> ::core::ffi::c_int; pub fn pg_set_noblock(sock: pgsocket) -> bool; pub fn pg_set_block(sock: pgsocket) -> bool; pub fn has_drive_prefix(filename: *const ::core::ffi::c_char) -> bool; @@ -31401,6 +28861,7 @@ extern "C" { tail: *const ::core::ffi::c_char, ); pub fn canonicalize_path(path: *mut ::core::ffi::c_char); + pub fn canonicalize_path_enc(path: *mut ::core::ffi::c_char, encoding: ::core::ffi::c_int); pub fn make_native_path(path: *mut ::core::ffi::c_char); pub fn cleanup_path(path: *mut ::core::ffi::c_char); pub fn path_contains_parent_reference(path: *const ::core::ffi::c_char) -> bool; @@ -31492,22 +28953,42 @@ extern "C" { pub fn pg_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_toupper(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; + pub fn pg_vsnprintf( + str_: *mut ::core::ffi::c_char, + count: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_snprintf( str_: *mut ::core::ffi::c_char, count: usize, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vsprintf( + str_: *mut ::core::ffi::c_char, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_sprintf( str_: *mut ::core::ffi::c_char, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vfprintf( + stream: *mut FILE, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_fprintf( stream: *mut FILE, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vprintf( + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_printf(fmt: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; pub fn pg_strfromd( str_: *mut ::core::ffi::c_char, @@ -31540,210 +29021,6 @@ extern "C" { uid: *mut uid_t, gid: *mut gid_t, ) -> ::core::ffi::c_int; - pub fn __acos(__x: f64) -> f64; - pub fn __asin(__x: f64) -> f64; - pub fn __atan(__x: f64) -> f64; - pub fn __atan2(__y: f64, __x: f64) -> f64; - pub fn __cos(__x: f64) -> f64; - pub fn __sin(__x: f64) -> f64; - pub fn __tan(__x: f64) -> f64; - pub fn __cosh(__x: f64) -> f64; - pub fn __sinh(__x: f64) -> f64; - pub fn __tanh(__x: f64) -> f64; - pub fn __acosh(__x: f64) -> f64; - pub fn __asinh(__x: f64) -> f64; - pub fn __atanh(__x: f64) -> f64; - pub fn __exp(__x: f64) -> f64; - pub fn __frexp(__x: f64, __exponent: *mut ::core::ffi::c_int) -> f64; - pub fn __ldexp(__x: f64, __exponent: ::core::ffi::c_int) -> f64; - pub fn __log(__x: f64) -> f64; - pub fn __log10(__x: f64) -> f64; - pub fn __modf(__x: f64, __iptr: *mut f64) -> f64; - pub fn __expm1(__x: f64) -> f64; - pub fn __log1p(__x: f64) -> f64; - pub fn __logb(__x: f64) -> f64; - pub fn __exp2(__x: f64) -> f64; - pub fn __log2(__x: f64) -> f64; - pub fn __pow(__x: f64, __y: f64) -> f64; - pub fn __sqrt(__x: f64) -> f64; - pub fn __hypot(__x: f64, __y: f64) -> f64; - pub fn __cbrt(__x: f64) -> f64; - pub fn __ceil(__x: f64) -> f64; - pub fn __fabs(__x: f64) -> f64; - pub fn __floor(__x: f64) -> f64; - pub fn __fmod(__x: f64, __y: f64) -> f64; - pub fn __drem(__x: f64, __y: f64) -> f64; - pub fn __significand(__x: f64) -> f64; - pub fn __copysign(__x: f64, __y: f64) -> f64; - pub fn __nan(__tagb: *const ::core::ffi::c_char) -> f64; - pub fn __j0(arg1: f64) -> f64; - pub fn __j1(arg1: f64) -> f64; - pub fn __jn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __y0(arg1: f64) -> f64; - pub fn __y1(arg1: f64) -> f64; - pub fn __yn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __erf(arg1: f64) -> f64; - pub fn __erfc(arg1: f64) -> f64; - pub fn __lgamma(arg1: f64) -> f64; - pub fn __tgamma(arg1: f64) -> f64; - pub fn __gamma(arg1: f64) -> f64; - pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::core::ffi::c_int) -> f64; - pub fn __rint(__x: f64) -> f64; - pub fn __nextafter(__x: f64, __y: f64) -> f64; - pub fn __nexttoward(__x: f64, __y: u128) -> f64; - pub fn __remainder(__x: f64, __y: f64) -> f64; - pub fn __scalbn(__x: f64, __n: ::core::ffi::c_int) -> f64; - pub fn __ilogb(__x: f64) -> ::core::ffi::c_int; - pub fn __scalbln(__x: f64, __n: ::core::ffi::c_long) -> f64; - pub fn __nearbyint(__x: f64) -> f64; - pub fn __round(__x: f64) -> f64; - pub fn __trunc(__x: f64) -> f64; - pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::core::ffi::c_int) -> f64; - pub fn __lrint(__x: f64) -> ::core::ffi::c_long; - pub fn __llrint(__x: f64) -> ::core::ffi::c_longlong; - pub fn __lround(__x: f64) -> ::core::ffi::c_long; - pub fn __llround(__x: f64) -> ::core::ffi::c_longlong; - pub fn __fdim(__x: f64, __y: f64) -> f64; - pub fn __fmax(__x: f64, __y: f64) -> f64; - pub fn __fmin(__x: f64, __y: f64) -> f64; - pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64; - pub fn __scalb(__x: f64, __n: f64) -> f64; - pub fn __acosf(__x: f32) -> f32; - pub fn __asinf(__x: f32) -> f32; - pub fn __atanf(__x: f32) -> f32; - pub fn __atan2f(__y: f32, __x: f32) -> f32; - pub fn __cosf(__x: f32) -> f32; - pub fn __sinf(__x: f32) -> f32; - pub fn __tanf(__x: f32) -> f32; - pub fn __coshf(__x: f32) -> f32; - pub fn __sinhf(__x: f32) -> f32; - pub fn __tanhf(__x: f32) -> f32; - pub fn __acoshf(__x: f32) -> f32; - pub fn __asinhf(__x: f32) -> f32; - pub fn __atanhf(__x: f32) -> f32; - pub fn __expf(__x: f32) -> f32; - pub fn __frexpf(__x: f32, __exponent: *mut ::core::ffi::c_int) -> f32; - pub fn __ldexpf(__x: f32, __exponent: ::core::ffi::c_int) -> f32; - pub fn __logf(__x: f32) -> f32; - pub fn __log10f(__x: f32) -> f32; - pub fn __modff(__x: f32, __iptr: *mut f32) -> f32; - pub fn __expm1f(__x: f32) -> f32; - pub fn __log1pf(__x: f32) -> f32; - pub fn __logbf(__x: f32) -> f32; - pub fn __exp2f(__x: f32) -> f32; - pub fn __log2f(__x: f32) -> f32; - pub fn __powf(__x: f32, __y: f32) -> f32; - pub fn __sqrtf(__x: f32) -> f32; - pub fn __hypotf(__x: f32, __y: f32) -> f32; - pub fn __cbrtf(__x: f32) -> f32; - pub fn __ceilf(__x: f32) -> f32; - pub fn __fabsf(__x: f32) -> f32; - pub fn __floorf(__x: f32) -> f32; - pub fn __fmodf(__x: f32, __y: f32) -> f32; - pub fn __dremf(__x: f32, __y: f32) -> f32; - pub fn __significandf(__x: f32) -> f32; - pub fn __copysignf(__x: f32, __y: f32) -> f32; - pub fn __nanf(__tagb: *const ::core::ffi::c_char) -> f32; - pub fn __j0f(arg1: f32) -> f32; - pub fn __j1f(arg1: f32) -> f32; - pub fn __jnf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __y0f(arg1: f32) -> f32; - pub fn __y1f(arg1: f32) -> f32; - pub fn __ynf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __erff(arg1: f32) -> f32; - pub fn __erfcf(arg1: f32) -> f32; - pub fn __lgammaf(arg1: f32) -> f32; - pub fn __tgammaf(arg1: f32) -> f32; - pub fn __gammaf(arg1: f32) -> f32; - pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::core::ffi::c_int) -> f32; - pub fn __rintf(__x: f32) -> f32; - pub fn __nextafterf(__x: f32, __y: f32) -> f32; - pub fn __nexttowardf(__x: f32, __y: u128) -> f32; - pub fn __remainderf(__x: f32, __y: f32) -> f32; - pub fn __scalbnf(__x: f32, __n: ::core::ffi::c_int) -> f32; - pub fn __ilogbf(__x: f32) -> ::core::ffi::c_int; - pub fn __scalblnf(__x: f32, __n: ::core::ffi::c_long) -> f32; - pub fn __nearbyintf(__x: f32) -> f32; - pub fn __roundf(__x: f32) -> f32; - pub fn __truncf(__x: f32) -> f32; - pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::core::ffi::c_int) -> f32; - pub fn __lrintf(__x: f32) -> ::core::ffi::c_long; - pub fn __llrintf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __lroundf(__x: f32) -> ::core::ffi::c_long; - pub fn __llroundf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __fdimf(__x: f32, __y: f32) -> f32; - pub fn __fmaxf(__x: f32, __y: f32) -> f32; - pub fn __fminf(__x: f32, __y: f32) -> f32; - pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32; - pub fn __scalbf(__x: f32, __n: f32) -> f32; - pub fn __acosl(__x: u128) -> u128; - pub fn __asinl(__x: u128) -> u128; - pub fn __atanl(__x: u128) -> u128; - pub fn __atan2l(__y: u128, __x: u128) -> u128; - pub fn __cosl(__x: u128) -> u128; - pub fn __sinl(__x: u128) -> u128; - pub fn __tanl(__x: u128) -> u128; - pub fn __coshl(__x: u128) -> u128; - pub fn __sinhl(__x: u128) -> u128; - pub fn __tanhl(__x: u128) -> u128; - pub fn __acoshl(__x: u128) -> u128; - pub fn __asinhl(__x: u128) -> u128; - pub fn __atanhl(__x: u128) -> u128; - pub fn __expl(__x: u128) -> u128; - pub fn __frexpl(__x: u128, __exponent: *mut ::core::ffi::c_int) -> u128; - pub fn __ldexpl(__x: u128, __exponent: ::core::ffi::c_int) -> u128; - pub fn __logl(__x: u128) -> u128; - pub fn __log10l(__x: u128) -> u128; - pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128; - pub fn __expm1l(__x: u128) -> u128; - pub fn __log1pl(__x: u128) -> u128; - pub fn __logbl(__x: u128) -> u128; - pub fn __exp2l(__x: u128) -> u128; - pub fn __log2l(__x: u128) -> u128; - pub fn __powl(__x: u128, __y: u128) -> u128; - pub fn __sqrtl(__x: u128) -> u128; - pub fn __hypotl(__x: u128, __y: u128) -> u128; - pub fn __cbrtl(__x: u128) -> u128; - pub fn __ceill(__x: u128) -> u128; - pub fn __fabsl(__x: u128) -> u128; - pub fn __floorl(__x: u128) -> u128; - pub fn __fmodl(__x: u128, __y: u128) -> u128; - pub fn __dreml(__x: u128, __y: u128) -> u128; - pub fn __significandl(__x: u128) -> u128; - pub fn __copysignl(__x: u128, __y: u128) -> u128; - pub fn __nanl(__tagb: *const ::core::ffi::c_char) -> u128; - pub fn __j0l(arg1: u128) -> u128; - pub fn __j1l(arg1: u128) -> u128; - pub fn __jnl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __y0l(arg1: u128) -> u128; - pub fn __y1l(arg1: u128) -> u128; - pub fn __ynl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __erfl(arg1: u128) -> u128; - pub fn __erfcl(arg1: u128) -> u128; - pub fn __lgammal(arg1: u128) -> u128; - pub fn __tgammal(arg1: u128) -> u128; - pub fn __gammal(arg1: u128) -> u128; - pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::core::ffi::c_int) -> u128; - pub fn __rintl(__x: u128) -> u128; - pub fn __nextafterl(__x: u128, __y: u128) -> u128; - pub fn __nexttowardl(__x: u128, __y: u128) -> u128; - pub fn __remainderl(__x: u128, __y: u128) -> u128; - pub fn __scalbnl(__x: u128, __n: ::core::ffi::c_int) -> u128; - pub fn __ilogbl(__x: u128) -> ::core::ffi::c_int; - pub fn __scalblnl(__x: u128, __n: ::core::ffi::c_long) -> u128; - pub fn __nearbyintl(__x: u128) -> u128; - pub fn __roundl(__x: u128) -> u128; - pub fn __truncl(__x: u128) -> u128; - pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::core::ffi::c_int) -> u128; - pub fn __lrintl(__x: u128) -> ::core::ffi::c_long; - pub fn __llrintl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __lroundl(__x: u128) -> ::core::ffi::c_long; - pub fn __llroundl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __fdiml(__x: u128, __y: u128) -> u128; - pub fn __fmaxl(__x: u128, __y: u128) -> u128; - pub fn __fminl(__x: u128, __y: u128) -> u128; - pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128; - pub fn __scalbl(__x: u128, __n: u128) -> u128; pub fn strlcat( dst: *mut ::core::ffi::c_char, src: *const ::core::ffi::c_char, @@ -31754,6 +29031,21 @@ extern "C" { src: *const ::core::ffi::c_char, siz: usize, ) -> usize; + pub fn pqGetpwuid( + uid: uid_t, + resultbuf: *mut passwd, + buffer: *mut ::core::ffi::c_char, + buflen: usize, + result: *mut *mut passwd, + ) -> ::core::ffi::c_int; + pub fn pqGethostbyname( + name: *const ::core::ffi::c_char, + resultbuf: *mut hostent, + buffer: *mut ::core::ffi::c_char, + buflen: usize, + result: *mut *mut hostent, + herrno: *mut ::core::ffi::c_int, + ) -> ::core::ffi::c_int; pub fn pg_qsort( base: *mut ::core::ffi::c_void, nel: usize, @@ -31901,6 +29193,12 @@ extern "C" { pub fn pnstrdup(in_: *const ::core::ffi::c_char, len: Size) -> *mut ::core::ffi::c_char; pub fn pchomp(in_: *const ::core::ffi::c_char) -> *mut ::core::ffi::c_char; pub fn psprintf(fmt: *const ::core::ffi::c_char, ...) -> *mut ::core::ffi::c_char; + pub fn pvsnprintf( + buf: *mut ::core::ffi::c_char, + len: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> usize; pub fn outNode(str_: *mut StringInfoData, obj: *const ::core::ffi::c_void); pub fn outToken(str_: *mut StringInfoData, s: *const ::core::ffi::c_char); pub fn outBitmapset(str_: *mut StringInfoData, bms: *const Bitmapset); @@ -32675,6 +29973,11 @@ extern "C" { pub fn initStringInfo(str_: StringInfo); pub fn resetStringInfo(str_: StringInfo); pub fn appendStringInfo(str_: StringInfo, fmt: *const ::core::ffi::c_char, ...); + pub fn appendStringInfoVA( + str_: StringInfo, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn appendStringInfoString(str_: StringInfo, s: *const ::core::ffi::c_char); pub fn appendStringInfoChar(str_: StringInfo, ch: ::core::ffi::c_char); pub fn appendStringInfoSpaces(str_: StringInfo, count: ::core::ffi::c_int); @@ -34979,6 +32282,12 @@ extern "C" { oidcol: AttrNumber, objectId: Oid, ) -> HeapTuple; + pub fn get_catalog_object_by_oid_extended( + catalog: Relation, + oidcol: AttrNumber, + objectId: Oid, + locktup: bool, + ) -> HeapTuple; pub fn getObjectDescription(object: *const ObjectAddress) -> *mut ::core::ffi::c_char; pub fn getObjectDescriptionOids(classid: Oid, objid: Oid) -> *mut ::core::ffi::c_char; pub fn read_objtype_from_string(objtype: *const ::core::ffi::c_char) -> ::core::ffi::c_int; @@ -35062,6 +32371,13 @@ extern "C" { nforks: ::core::ffi::c_int, nblocks: *mut BlockNumber, ); + pub fn smgrtruncate2( + reln: SMgrRelation, + forknum: *mut ForkNumber::Type, + nforks: ::core::ffi::c_int, + old_nblocks: *mut BlockNumber, + nblocks: *mut BlockNumber, + ); pub fn smgrimmedsync(reln: SMgrRelation, forknum: ForkNumber::Type); pub fn AtEOXact_SMgr(); pub fn RelationIncrementReferenceCount(rel: Relation); @@ -36732,6 +34048,24 @@ extern "C" { wantLength: uint32, ); pub fn WALReadRaiseError(errinfo: *mut WALReadError); + pub fn IsSystemRelation(relation: Relation) -> bool; + pub fn IsToastRelation(relation: Relation) -> bool; + pub fn IsCatalogRelation(relation: Relation) -> bool; + pub fn IsInplaceUpdateRelation(relation: Relation) -> bool; + pub fn IsSystemClass(relid: Oid, reltuple: Form_pg_class) -> bool; + pub fn IsToastClass(reltuple: Form_pg_class) -> bool; + pub fn IsCatalogRelationOid(relid: Oid) -> bool; + pub fn IsInplaceUpdateOid(relid: Oid) -> bool; + pub fn IsCatalogNamespace(namespaceId: Oid) -> bool; + pub fn IsToastNamespace(namespaceId: Oid) -> bool; + pub fn IsReservedName(name: *const ::core::ffi::c_char) -> bool; + pub fn IsSharedRelation(relationId: Oid) -> bool; + pub fn GetNewOidWithIndex(relation: Relation, indexId: Oid, oidcolumn: AttrNumber) -> Oid; + pub fn GetNewRelFileNode( + reltablespace: Oid, + pg_class: Relation, + relpersistence: ::core::ffi::c_char, + ) -> Oid; pub fn AcquireDeletionLock(object: *const ObjectAddress, flags: ::core::ffi::c_int); pub fn ReleaseDeletionLock(object: *const ObjectAddress); pub fn performDeletion( @@ -38932,6 +36266,7 @@ extern "C" { pub fn pg_char_to_encoding(name: *const ::core::ffi::c_char) -> ::core::ffi::c_int; pub fn pg_encoding_to_char(encoding: ::core::ffi::c_int) -> *const ::core::ffi::c_char; pub fn pg_valid_server_encoding_id(encoding: ::core::ffi::c_int) -> ::core::ffi::c_int; + pub fn pg_encoding_set_invalid(encoding: ::core::ffi::c_int, dst: *mut ::core::ffi::c_char); pub fn pg_encoding_mblen( encoding: ::core::ffi::c_int, mbstr: *const ::core::ffi::c_char, @@ -38949,6 +36284,16 @@ extern "C" { mbstr: *const ::core::ffi::c_char, len: ::core::ffi::c_int, ) -> ::core::ffi::c_int; + pub fn pg_encoding_verifymbchar( + encoding: ::core::ffi::c_int, + mbstr: *const ::core::ffi::c_char, + len: ::core::ffi::c_int, + ) -> ::core::ffi::c_int; + pub fn pg_encoding_verifymbstr( + encoding: ::core::ffi::c_int, + mbstr: *const ::core::ffi::c_char, + len: ::core::ffi::c_int, + ) -> ::core::ffi::c_int; pub fn pg_encoding_max_length(encoding: ::core::ffi::c_int) -> ::core::ffi::c_int; pub fn pg_valid_client_encoding(name: *const ::core::ffi::c_char) -> ::core::ffi::c_int; pub fn pg_valid_server_encoding(name: *const ::core::ffi::c_char) -> ::core::ffi::c_int; @@ -45581,6 +42926,7 @@ extern "C" { ) -> *mut CatCList; pub fn ReleaseCatCacheList(list: *mut CatCList); pub fn ResetCatalogCaches(); + pub fn ResetCatalogCachesExt(debug_discard: bool); pub fn CatalogCacheFlushCatalog(catId: Oid); pub fn CatCacheInvalidate(cache: *mut CatCache, hashValue: uint32); pub fn PrepareToInvalidateCacheTuple( @@ -50308,6 +47654,14 @@ pub const XmlExprOp_IS_DOCUMENT: u32 = 7; pub const XmlOptionType_XMLOPTION_DOCUMENT: u32 = 0; #[deprecated(since = "0.12.0", note = "you want pg_sys::XmlOptionType::XMLOPTION_CONTENT")] pub const XmlOptionType_XMLOPTION_CONTENT: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_TID")] +pub const __pid_type_F_OWNER_TID: u32 = 0; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PID")] +pub const __pid_type_F_OWNER_PID: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PGRP")] +pub const __pid_type_F_OWNER_PGRP: u32 = 2; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_GID")] +pub const __pid_type_F_OWNER_GID: u32 = 2; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_STREAM")] pub const __socket_type_SOCK_STREAM: u32 = 1; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_DGRAM")] diff --git a/pgrx-pg-sys/src/include/pg14.rs b/pgrx-pg-sys/src/include/pg14.rs index 12431e0c51..7ed46a1e05 100644 --- a/pgrx-pg-sys/src/include/pg14.rs +++ b/pgrx-pg-sys/src/include/pg14.rs @@ -22,28 +22,51 @@ 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]; + fn extract_bit(byte: u8, index: usize) -> bool { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } #[inline] - pub fn set_bit(&mut self, index: usize, val: bool) { + pub fn get_bit(&self, index: usize) -> 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 byte = self.storage.as_ref()[byte_index]; + Self::extract_bit(byte, index) + } + #[inline] + pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); + Self::extract_bit(byte, index) + } + #[inline] + fn change_bit(byte: u8, index: usize, val: bool) -> u8 { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { - *byte |= mask; + byte | mask } else { - *byte &= !mask; + byte & !mask } } #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + *byte = Self::change_bit(*byte, index, val); + } + #[inline] + pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); + *byte = Self::change_bit(*byte, index, val); + } + #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -59,6 +82,21 @@ where val } #[inline] + pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if Self::raw_get_bit(this, i + bit_offset) { + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + val |= 1 << index; + } + } + val + } + #[inline] pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -70,6 +108,18 @@ where self.set_bit(index + bit_offset, val_bit_is_set); } } + #[inline] + pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); + } + } } #[repr(C)] #[derive(Default)] @@ -126,51 +176,25 @@ pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; pub const DEF_PGPORT: u32 = 28814; -#[allow(unsafe_code)] -pub const DEF_PGPORT_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"28814\0") }; +pub const DEF_PGPORT_STR: &::core::ffi::CStr = c"28814"; pub const ENABLE_THREAD_SAFETY: u32 = 1; -#[allow(unsafe_code)] -pub const INT64_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; +pub const INT64_MODIFIER: &::core::ffi::CStr = c"l"; pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; -#[allow(unsafe_code)] -pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql-bugs@lists.postgresql.org\0") -}; -#[allow(unsafe_code)] -pub const PACKAGE_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL 14.15\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_TARNAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_URL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"https://www.postgresql.org/\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"14.15\0") }; -#[allow(unsafe_code)] -pub const PG_KRB_SRVNAM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres\0") }; -#[allow(unsafe_code)] -pub const PG_MAJORVERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"14\0") }; +pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = c"pgsql-bugs@lists.postgresql.org"; +pub const PACKAGE_NAME: &::core::ffi::CStr = c"PostgreSQL"; +pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 14.17"; +pub const PACKAGE_TARNAME: &::core::ffi::CStr = c"postgresql"; +pub const PACKAGE_URL: &::core::ffi::CStr = c"https://www.postgresql.org/"; +pub const PACKAGE_VERSION: &::core::ffi::CStr = c"14.17"; +pub const PG_KRB_SRVNAM: &::core::ffi::CStr = c"postgres"; +pub const PG_MAJORVERSION: &::core::ffi::CStr = c"14"; pub const PG_MAJORVERSION_NUM: u32 = 14; -pub const PG_MINORVERSION_NUM: u32 = 15; +pub const PG_MINORVERSION_NUM: u32 = 17; pub const PG_USE_STDBOOL: u32 = 1; -#[allow(unsafe_code)] -pub const PG_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"14.15\0") }; -pub const PG_VERSION_NUM: u32 = 140015; -#[allow(unsafe_code)] -pub const PG_VERSION_STR: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"PostgreSQL 14.15 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0") -}; +pub const PG_VERSION: &::core::ffi::CStr = c"14.17"; +pub const PG_VERSION_NUM: u32 = 140017; +pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 14.17 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -199,351 +223,15 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -#[allow(unsafe_code)] -pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -#[allow(unsafe_code)] -pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = c"/tmp"; +pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = c"PostgreSQL"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -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 = 35; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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_C2X: 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_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: 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 _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; -#[allow(unsafe_code)] -pub const P_tmpdir: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -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 __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 __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -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 __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 __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 __PTHREAD_MUTEX_HAVE_PREV: 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 EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; -pub const __bool_true_false_are_defined: u32 = 1; -pub const true_: u32 = 1; -pub const false_: u32 = 0; -#[allow(unsafe_code)] -pub const INT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%ld\0") }; -#[allow(unsafe_code)] -pub const UINT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%lu\0") }; +pub const SIG_ATOMIC_WIDTH: u32 = 32; +pub const INT64_FORMAT: &::core::ffi::CStr = c"%ld"; +pub const UINT64_FORMAT: &::core::ffi::CStr = c"%lu"; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; pub const PG_UINT8_MAX: u32 = 255; @@ -560,453 +248,16 @@ pub const STATUS_OK: u32 = 0; pub const STATUS_ERROR: i32 = -1; pub const STATUS_EOF: i32 = -2; pub const PG_BINARY: u32 = 0; -#[allow(unsafe_code)] -pub const PG_BINARY_A: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"a\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_R: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"r\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_W: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"w\0") }; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INET_ADDRSTRLEN: u32 = 16; -pub const INET6_ADDRSTRLEN: u32 = 46; -#[allow(unsafe_code)] -pub const _PATH_HEQUIV: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts.equiv\0") }; -#[allow(unsafe_code)] -pub const _PATH_HOSTS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts\0") }; -#[allow(unsafe_code)] -pub const _PATH_NETWORKS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/networks\0") }; -#[allow(unsafe_code)] -pub const _PATH_NSSWITCH_CONF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/nsswitch.conf\0") }; -#[allow(unsafe_code)] -pub const _PATH_PROTOCOLS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/protocols\0") }; -#[allow(unsafe_code)] -pub const _PATH_SERVICES: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/services\0") }; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const NSS_BUFLEN_PASSWD: u32 = 1024; +pub const PG_BINARY_A: &::core::ffi::CStr = c"a"; +pub const PG_BINARY_R: &::core::ffi::CStr = c"r"; +pub const PG_BINARY_W: &::core::ffi::CStr = c"w"; pub const PGINVALID_SOCKET: i32 = -1; -#[allow(unsafe_code)] -pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres (PostgreSQL) 14.15\n\0") }; -#[allow(unsafe_code)] -pub const EXE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const DEVNULL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/dev/null\0") }; +pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 14.17\n"; +pub const EXE: &::core::ffi::CStr = c""; +pub const DEVNULL: &::core::ffi::CStr = c"/dev/null"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -1020,7 +271,6 @@ pub const NOTICE: u32 = 18; pub const WARNING: u32 = 19; pub const PGWARNING: u32 = 19; pub const WARNING_CLIENT_ONLY: u32 = 20; -pub const ERROR: u32 = 21; pub const PGERROR: u32 = 21; pub const FATAL: u32 = 22; pub const PANIC: u32 = 23; @@ -1084,131 +334,8 @@ pub const LP_DEAD: u32 = 3; pub const SpecTokenOffsetNumber: u32 = 65534; pub const MovedPartitionsOffsetNumber: u32 = 65533; pub const FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; -pub const PG_O_DIRECT: u32 = 0; +pub const PG_O_DIRECT: u32 = 16384; pub const OPEN_SYNC_FLAG: u32 = 1052672; pub const OPEN_DATASYNC_FLAG: u32 = 4096; pub const FirstGenbkiObjectId: u32 = 10000; @@ -1536,27 +663,10 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -#[allow(unsafe_code)] -pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Pg_magic_func\0") }; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = c"Pg_magic_func"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const PARAM_FLAG_CONST: u32 = 1; @@ -1605,101 +715,17 @@ pub const INDEX_VAR: u32 = 65002; pub const ROWID_VAR: u32 = 65003; pub const PRS2_OLD_VARNO: u32 = 1; pub const PRS2_NEW_VARNO: u32 = 2; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_dynshmem\0") }; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"mmap.\0") }; +pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = c"pg_dynshmem"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = c"mmap."; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const SIZEOF_DSA_POINTER: u32 = 8; -#[allow(unsafe_code)] -pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%016lx\0") }; +pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = c"%016lx"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1719,14 +745,8 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; pub const NO_MAX_DSIZE: i32 = -1; -pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; -pub const MAXNAMLEN: u32 = 255; -#[allow(unsafe_code)] -pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; -#[allow(unsafe_code)] -pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; +pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = c"pgsql_tmp"; +pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = c"pgsql_tmp"; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const MAX_TIMESTAMP_PRECISION: u32 = 6; pub const MAX_INTERVAL_PRECISION: u32 = 6; @@ -1753,9 +773,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -#[allow(unsafe_code)] -pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_internal.init\0") }; +pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = c"pg_internal.init"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; @@ -1891,40 +909,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const NSIG: u32 = 65; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const __sigstack_defined: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1945,10 +933,7 @@ pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -#[allow(unsafe_code)] -pub const VALID_XFN_CHARS: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"0123456789ABCDEF.history.backup.partial\0") -}; +pub const VALID_XFN_CHARS: &::core::ffi::CStr = c"0123456789ABCDEF.history.backup.partial"; pub const PGSTAT_NUM_PROGRESS_PARAM: u32 = 20; pub const MAX_STARTUP_PACKET_LENGTH: u32 = 10000; pub const AUTH_REQ_OK: u32 = 0; @@ -1973,18 +958,10 @@ pub const PG_WAIT_EXTENSION: u32 = 117440512; pub const PG_WAIT_IPC: u32 = 134217728; pub const PG_WAIT_TIMEOUT: u32 = 150994944; pub const PG_WAIT_IO: u32 = 167772160; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/global.stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/global.tmp\0") }; -#[allow(unsafe_code)] -pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat_tmp\0") }; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = c"pg_stat"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = c"pg_stat/global.stat"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = c"pg_stat/global.tmp"; +pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = c"pg_stat_tmp"; pub const PGSTAT_MAX_MSG_SIZE: u32 = 1000; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638946; pub const SK_ISNULL: u32 = 1; @@ -2053,27 +1030,13 @@ pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; pub const XLOG_INCLUDE_XID: u32 = 4; -#[allow(unsafe_code)] -pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"recovery.signal\0") }; -#[allow(unsafe_code)] -pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"standby.signal\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label.old\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map.old\0") }; -#[allow(unsafe_code)] -pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"promote\0") }; +pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = c"recovery.signal"; +pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = c"standby.signal"; +pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = c"backup_label"; +pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = c"backup_label.old"; +pub const TABLESPACE_MAP: &::core::ffi::CStr = c"tablespace_map"; +pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = c"tablespace_map.old"; +pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = c"promote"; pub const XLOG_PAGE_MAGIC: u32 = 53517; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -2084,12 +1047,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -#[allow(unsafe_code)] -pub const XLOGDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_wal\0") }; -#[allow(unsafe_code)] -pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"global/pg_control\0") }; +pub const XLOGDIR: &::core::ffi::CStr = c"pg_wal"; +pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = c"global/pg_control"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const RelationRelationId: Oid = Oid(1259); @@ -2261,9 +1220,7 @@ pub const XACT_COMPLETION_FORCE_SYNC_COMMIT: u32 = 2147483648; pub const EOH_HEADER_MAGIC: i32 = -1; pub const MAXDIM: u32 = 6; pub const EA_MAGIC: u32 = 689375833; -#[allow(unsafe_code)] -pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql.auto.conf\0") }; +pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = c"postgresql.auto.conf"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -2290,9 +1247,7 @@ pub const GUC_UNIT_TIME: u32 = 983040; pub const GUC_EXPLAIN: u32 = 1048576; pub const GUC_ALLOW_IN_PARALLEL: u32 = 2097152; pub const GUC_UNIT: u32 = 1044480; -#[allow(unsafe_code)] -pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"heap\0") }; +pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = c"heap"; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; pub const TABLE_INSERT_NO_LOGICAL: u32 = 8; @@ -2344,9 +1299,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -#[allow(unsafe_code)] -pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"btree\0") }; +pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = c"btree"; pub const REINDEXOPT_VERBOSE: u32 = 1; pub const REINDEXOPT_REPORT_PROGRESS: u32 = 2; pub const REINDEXOPT_MISSING_OK: u32 = 4; @@ -2775,9 +1728,7 @@ pub const ACL_USAGE_CHR: u8 = 85u8; pub const ACL_CREATE_CHR: u8 = 67u8; pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; -#[allow(unsafe_code)] -pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"arwdDxtXUCTc\0") }; +pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = c"arwdDxtXUCTc"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -3267,12 +2218,8 @@ pub const PLPGSQL_XCHECK_STRICTMULTIASSIGNMENT: u32 = 8; pub const POSTMASTER_FD_WATCH: u32 = 0; pub const POSTMASTER_FD_OWN: u32 = 1; pub const MAX_BACKENDS: u32 = 262143; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles\0") }; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles.tmp\0") }; +pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = c"current_logfiles"; +pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = c"current_logfiles.tmp"; pub const RBTXN_HAS_CATALOG_CHANGES: u32 = 1; pub const RBTXN_IS_SUBXACT: u32 = 2; pub const RBTXN_IS_SERIALIZED: u32 = 4; @@ -3335,87 +2282,33 @@ pub const FORMAT_TYPE_ALLOW_INVALID: u32 = 2; pub const FORMAT_TYPE_FORCE_QUALIFY: u32 = 4; pub const FORMAT_TYPE_INVALID_AS_NULL: u32 = 8; pub const MAX_TIME_PRECISION: u32 = 6; -#[allow(unsafe_code)] -pub const DAGO: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ago\0") }; -#[allow(unsafe_code)] -pub const DCURRENT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current\0") }; -#[allow(unsafe_code)] -pub const EPOCH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"epoch\0") }; -#[allow(unsafe_code)] -pub const INVALID: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"invalid\0") }; -#[allow(unsafe_code)] -pub const EARLY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-infinity\0") }; -#[allow(unsafe_code)] -pub const LATE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"infinity\0") }; -#[allow(unsafe_code)] -pub const NOW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"now\0") }; -#[allow(unsafe_code)] -pub const TODAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"today\0") }; -#[allow(unsafe_code)] -pub const TOMORROW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tomorrow\0") }; -#[allow(unsafe_code)] -pub const YESTERDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"yesterday\0") }; -#[allow(unsafe_code)] -pub const ZULU: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"zulu\0") }; -#[allow(unsafe_code)] -pub const DMICROSEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"usecond\0") }; -#[allow(unsafe_code)] -pub const DMILLISEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"msecond\0") }; -#[allow(unsafe_code)] -pub const DSECOND: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"second\0") }; -#[allow(unsafe_code)] -pub const DMINUTE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"minute\0") }; -#[allow(unsafe_code)] -pub const DHOUR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hour\0") }; -#[allow(unsafe_code)] -pub const DDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"day\0") }; -#[allow(unsafe_code)] -pub const DWEEK: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"week\0") }; -#[allow(unsafe_code)] -pub const DMONTH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"month\0") }; -#[allow(unsafe_code)] -pub const DQUARTER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"quarter\0") }; -#[allow(unsafe_code)] -pub const DYEAR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"year\0") }; -#[allow(unsafe_code)] -pub const DDECADE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"decade\0") }; -#[allow(unsafe_code)] -pub const DCENTURY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"century\0") }; -#[allow(unsafe_code)] -pub const DMILLENNIUM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"millennium\0") }; -#[allow(unsafe_code)] -pub const DA_D: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ad\0") }; -#[allow(unsafe_code)] -pub const DB_C: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"bc\0") }; -#[allow(unsafe_code)] -pub const DTIMEZONE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"timezone\0") }; +pub const DAGO: &::core::ffi::CStr = c"ago"; +pub const DCURRENT: &::core::ffi::CStr = c"current"; +pub const EPOCH: &::core::ffi::CStr = c"epoch"; +pub const INVALID: &::core::ffi::CStr = c"invalid"; +pub const EARLY: &::core::ffi::CStr = c"-infinity"; +pub const LATE: &::core::ffi::CStr = c"infinity"; +pub const NOW: &::core::ffi::CStr = c"now"; +pub const TODAY: &::core::ffi::CStr = c"today"; +pub const TOMORROW: &::core::ffi::CStr = c"tomorrow"; +pub const YESTERDAY: &::core::ffi::CStr = c"yesterday"; +pub const ZULU: &::core::ffi::CStr = c"zulu"; +pub const DMICROSEC: &::core::ffi::CStr = c"usecond"; +pub const DMILLISEC: &::core::ffi::CStr = c"msecond"; +pub const DSECOND: &::core::ffi::CStr = c"second"; +pub const DMINUTE: &::core::ffi::CStr = c"minute"; +pub const DHOUR: &::core::ffi::CStr = c"hour"; +pub const DDAY: &::core::ffi::CStr = c"day"; +pub const DWEEK: &::core::ffi::CStr = c"week"; +pub const DMONTH: &::core::ffi::CStr = c"month"; +pub const DQUARTER: &::core::ffi::CStr = c"quarter"; +pub const DYEAR: &::core::ffi::CStr = c"year"; +pub const DDECADE: &::core::ffi::CStr = c"decade"; +pub const DCENTURY: &::core::ffi::CStr = c"century"; +pub const DMILLENNIUM: &::core::ffi::CStr = c"millennium"; +pub const DA_D: &::core::ffi::CStr = c"ad"; +pub const DB_C: &::core::ffi::CStr = c"bc"; +pub const DTIMEZONE: &::core::ffi::CStr = c"timezone"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -6737,9 +5630,7 @@ pub const DEFAULT_NUM_DISTINCT: u32 = 200; pub const DEFAULT_UNK_SEL: f64 = 0.005; pub const DEFAULT_NOT_UNK_SEL: f64 = 0.995; pub const SELFLAG_USED_DEFAULT: u32 = 1; -#[allow(unsafe_code)] -pub const RANGE_EMPTY_LITERAL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"empty\0") }; +pub const RANGE_EMPTY_LITERAL: &::core::ffi::CStr = c"empty"; pub const RANGE_EMPTY: u32 = 1; pub const RANGE_LB_INC: u32 = 2; pub const RANGE_UB_INC: u32 = 4; @@ -6760,137 +5651,17 @@ pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; pub const RANGESTRAT_EQ: u32 = 18; pub type pg_int64 = ::core::ffi::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::core::ffi::c_uchar; -pub type __u_short = ::core::ffi::c_ushort; -pub type __u_int = ::core::ffi::c_uint; -pub type __u_long = ::core::ffi::c_ulong; -pub type __int8_t = ::core::ffi::c_schar; -pub type __uint8_t = ::core::ffi::c_uchar; -pub type __int16_t = ::core::ffi::c_short; -pub type __uint16_t = ::core::ffi::c_ushort; -pub type __int32_t = ::core::ffi::c_int; -pub type __uint32_t = ::core::ffi::c_uint; -pub type __int64_t = ::core::ffi::c_long; -pub type __uint64_t = ::core::ffi::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::core::ffi::c_long; -pub type __u_quad_t = ::core::ffi::c_ulong; -pub type __intmax_t = ::core::ffi::c_long; -pub type __uintmax_t = ::core::ffi::c_ulong; -pub type __dev_t = ::core::ffi::c_ulong; pub type __uid_t = ::core::ffi::c_uint; pub type __gid_t = ::core::ffi::c_uint; pub type __ino_t = ::core::ffi::c_ulong; -pub type __ino64_t = ::core::ffi::c_ulong; pub type __mode_t = ::core::ffi::c_uint; -pub type __nlink_t = ::core::ffi::c_ulong; pub type __off_t = ::core::ffi::c_long; pub type __off64_t = ::core::ffi::c_long; pub type __pid_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::core::ffi::c_int; 2usize], -} -pub type __clock_t = ::core::ffi::c_long; -pub type __rlim_t = ::core::ffi::c_ulong; -pub type __rlim64_t = ::core::ffi::c_ulong; -pub type __id_t = ::core::ffi::c_uint; pub type __time_t = ::core::ffi::c_long; -pub type __useconds_t = ::core::ffi::c_uint; -pub type __suseconds_t = ::core::ffi::c_long; -pub type __suseconds64_t = ::core::ffi::c_long; -pub type __daddr_t = ::core::ffi::c_int; -pub type __key_t = ::core::ffi::c_int; -pub type __clockid_t = ::core::ffi::c_int; -pub type __timer_t = *mut ::core::ffi::c_void; -pub type __blksize_t = ::core::ffi::c_long; -pub type __blkcnt_t = ::core::ffi::c_long; -pub type __blkcnt64_t = ::core::ffi::c_long; -pub type __fsblkcnt_t = ::core::ffi::c_ulong; -pub type __fsblkcnt64_t = ::core::ffi::c_ulong; -pub type __fsfilcnt_t = ::core::ffi::c_ulong; -pub type __fsfilcnt64_t = ::core::ffi::c_ulong; -pub type __fsword_t = ::core::ffi::c_long; -pub type __ssize_t = ::core::ffi::c_long; pub type __syscall_slong_t = ::core::ffi::c_long; -pub type __syscall_ulong_t = ::core::ffi::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::core::ffi::c_char; -pub type __intptr_t = ::core::ffi::c_long; pub type __socklen_t = ::core::ffi::c_uint; pub type __sig_atomic_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::core::ffi::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::core::ffi::c_uint, - pub __wchb: [::core::ffi::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -6951,467 +5722,21 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub type wchar_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::core::ffi::c_int, - pub rem: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::core::ffi::c_long, - pub rem: ::core::ffi::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::core::ffi::c_longlong, - pub rem: ::core::ffi::c_longlong, -} -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 = ::core::ffi::c_ulong; -pub type ushort = ::core::ffi::c_ushort; -pub type uint = ::core::ffi::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::core::ffi::c_long; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct __sigset_t { pub __val: [::core::ffi::c_ulong; 16usize], } -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct timespec { pub tv_sec: __time_t, pub tv_nsec: __syscall_slong_t, } -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::core::ffi::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -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: ::core::ffi::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::core::ffi::c_uint, - pub __high: ::core::ffi::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::core::ffi::c_int, - pub __count: ::core::ffi::c_uint, - pub __owner: ::core::ffi::c_int, - pub __nusers: ::core::ffi::c_uint, - pub __kind: ::core::ffi::c_int, - pub __spins: ::core::ffi::c_short, - pub __elision: ::core::ffi::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::core::ffi::c_uint, - pub __writers: ::core::ffi::c_uint, - pub __wrphase_futex: ::core::ffi::c_uint, - pub __writers_futex: ::core::ffi::c_uint, - pub __pad3: ::core::ffi::c_uint, - pub __pad4: ::core::ffi::c_uint, - pub __cur_writer: ::core::ffi::c_int, - pub __shared: ::core::ffi::c_int, - pub __rwelision: ::core::ffi::c_schar, - pub __pad1: [::core::ffi::c_uchar; 7usize], - pub __pad2: ::core::ffi::c_ulong, - pub __flags: ::core::ffi::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::core::ffi::c_uint; 2usize], - pub __g_size: [::core::ffi::c_uint; 2usize], - pub __g1_orig_size: ::core::ffi::c_uint, - pub __wrefs: ::core::ffi::c_uint, - pub __g_signals: [::core::ffi::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::core::ffi::c_uint; -pub type __thrd_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::core::ffi::c_int, -} -pub type pthread_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::core::ffi::c_uint; -pub type pthread_once_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::core::ffi::c_char; 40usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::core::ffi::c_char; 48usize], - pub __align: ::core::ffi::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::core::ffi::c_char; 8usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::core::ffi::c_char; 32usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::core::ffi::c_int, - pub rand_deg: ::core::ffi::c_int, - pub rand_sep: ::core::ffi::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::core::ffi::c_ushort; 3usize], - pub __old_x: [::core::ffi::c_ushort; 3usize], - pub __c: ::core::ffi::c_ushort, - pub __init: ::core::ffi::c_ushort, - pub __a: ::core::ffi::c_ulonglong, -} -pub type __compar_fn_t = ::core::option::Option< - unsafe extern "C" fn( - arg1: *const ::core::ffi::c_void, - arg2: *const ::core::ffi::c_void, - ) -> ::core::ffi::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::core::ffi::c_ushort, - pub __ctype_tolower: *const ::core::ffi::c_int, - pub __ctype_toupper: *const ::core::ffi::c_int, - pub __names: [*const ::core::ffi::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::core::ffi::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -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 = ::core::ffi::c_schar; -pub type int_fast16_t = ::core::ffi::c_long; -pub type int_fast32_t = ::core::ffi::c_long; -pub type int_fast64_t = ::core::ffi::c_long; -pub type uint_fast8_t = ::core::ffi::c_uchar; -pub type uint_fast16_t = ::core::ffi::c_ulong; -pub type uint_fast32_t = ::core::ffi::c_ulong; -pub type uint_fast64_t = ::core::ffi::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::core::ffi::c_char, - pub thousands_sep: *mut ::core::ffi::c_char, - pub grouping: *mut ::core::ffi::c_char, - pub int_curr_symbol: *mut ::core::ffi::c_char, - pub currency_symbol: *mut ::core::ffi::c_char, - pub mon_decimal_point: *mut ::core::ffi::c_char, - pub mon_thousands_sep: *mut ::core::ffi::c_char, - pub mon_grouping: *mut ::core::ffi::c_char, - pub positive_sign: *mut ::core::ffi::c_char, - pub negative_sign: *mut ::core::ffi::c_char, - pub int_frac_digits: ::core::ffi::c_char, - pub frac_digits: ::core::ffi::c_char, - pub p_cs_precedes: ::core::ffi::c_char, - pub p_sep_by_space: ::core::ffi::c_char, - pub n_cs_precedes: ::core::ffi::c_char, - pub n_sep_by_space: ::core::ffi::c_char, - pub p_sign_posn: ::core::ffi::c_char, - pub n_sign_posn: ::core::ffi::c_char, - pub int_p_cs_precedes: ::core::ffi::c_char, - pub int_p_sep_by_space: ::core::ffi::c_char, - pub int_n_cs_precedes: ::core::ffi::c_char, - pub int_n_sep_by_space: ::core::ffi::c_char, - pub int_p_sign_posn: ::core::ffi::c_char, - pub int_n_sign_posn: ::core::ffi::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_funcptr_t = ::core::option::Option; pub type Pointer = *mut ::core::ffi::c_char; pub type int8 = ::core::ffi::c_schar; @@ -7538,21 +5863,6 @@ impl Default for PGAlignedXLogBlock { } } } -pub mod _bindgen_ty_1 { - pub type Type = ::core::ffi::c_uint; - pub const _ISupper: Type = 256; - pub const _ISlower: Type = 512; - pub const _ISalpha: Type = 1024; - pub const _ISdigit: Type = 2048; - pub const _ISxdigit: Type = 4096; - pub const _ISspace: Type = 8192; - pub const _ISprint: Type = 16384; - pub const _ISgraph: Type = 32768; - pub const _ISblank: Type = 1; - pub const _IScntrl: Type = 2; - pub const _ISpunct: Type = 4; - pub const _ISalnum: Type = 8; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct iovec { @@ -7569,26 +5879,8 @@ impl Default for iovec { } } pub type socklen_t = __socklen_t; -pub mod __socket_type { - pub type Type = ::core::ffi::c_uint; - pub const SOCK_STREAM: Type = 1; - pub const SOCK_DGRAM: Type = 2; - pub const SOCK_RAW: Type = 3; - pub const SOCK_RDM: Type = 4; - pub const SOCK_SEQPACKET: Type = 5; - pub const SOCK_DCCP: Type = 6; - pub const SOCK_PACKET: Type = 10; - pub const SOCK_CLOEXEC: Type = 524288; - pub const SOCK_NONBLOCK: Type = 2048; -} pub type sa_family_t = ::core::ffi::c_ushort; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::core::ffi::c_char; 14usize], -} -#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr_storage { pub ss_family: sa_family_t, @@ -7604,404 +5896,6 @@ impl Default for sockaddr_storage { } } } -pub mod _bindgen_ty_2 { - pub type Type = ::core::ffi::c_uint; - pub const MSG_OOB: Type = 1; - pub const MSG_PEEK: Type = 2; - pub const MSG_DONTROUTE: Type = 4; - pub const MSG_CTRUNC: Type = 8; - pub const MSG_PROXY: Type = 16; - pub const MSG_TRUNC: Type = 32; - pub const MSG_DONTWAIT: Type = 64; - pub const MSG_EOR: Type = 128; - pub const MSG_WAITALL: Type = 256; - pub const MSG_FIN: Type = 512; - pub const MSG_SYN: Type = 1024; - pub const MSG_CONFIRM: Type = 2048; - pub const MSG_RST: Type = 4096; - pub const MSG_ERRQUEUE: Type = 8192; - pub const MSG_NOSIGNAL: Type = 16384; - pub const MSG_MORE: Type = 32768; - pub const MSG_WAITFORONE: Type = 65536; - pub const MSG_BATCH: Type = 262144; - pub const MSG_ZEROCOPY: Type = 67108864; - pub const MSG_FASTOPEN: Type = 536870912; - pub const MSG_CMSG_CLOEXEC: Type = 1073741824; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::core::ffi::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::core::ffi::c_void, - pub msg_controllen: usize, - pub msg_flags: ::core::ffi::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::core::ffi::c_int, - pub cmsg_type: ::core::ffi::c_int, - pub __cmsg_data: __IncompleteArrayField<::core::ffi::c_uchar>, -} -pub mod _bindgen_ty_3 { - pub type Type = ::core::ffi::c_uint; - pub const SCM_RIGHTS: Type = 1; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::core::ffi::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::core::option::Option; -pub type __kernel_key_t = ::core::ffi::c_int; -pub type __kernel_mqd_t = ::core::ffi::c_int; -pub type __kernel_old_uid_t = ::core::ffi::c_ushort; -pub type __kernel_old_gid_t = ::core::ffi::c_ushort; -pub type __kernel_old_dev_t = ::core::ffi::c_ulong; -pub type __kernel_long_t = ::core::ffi::c_long; -pub type __kernel_ulong_t = ::core::ffi::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::core::ffi::c_uint; -pub type __kernel_pid_t = ::core::ffi::c_int; -pub type __kernel_ipc_pid_t = ::core::ffi::c_int; -pub type __kernel_uid_t = ::core::ffi::c_uint; -pub type __kernel_gid_t = ::core::ffi::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::core::ffi::c_int; -pub type __kernel_uid32_t = ::core::ffi::c_uint; -pub type __kernel_gid32_t = ::core::ffi::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::core::ffi::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::core::ffi::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::core::ffi::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::core::ffi::c_int; -pub type __kernel_clockid_t = ::core::ffi::c_int; -pub type __kernel_caddr_t = *mut ::core::ffi::c_char; -pub type __kernel_uid16_t = ::core::ffi::c_ushort; -pub type __kernel_gid16_t = ::core::ffi::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::core::ffi::c_int, - pub l_linger: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::core::ffi::c_ushort, - pub sa_data: [::core::ffi::c_uchar; 14usize], -} -pub mod _bindgen_ty_4 { - pub type Type = ::core::ffi::c_uint; - pub const SHUT_RD: Type = 0; - pub const SHUT_WR: Type = 1; - pub const SHUT_RDWR: Type = 2; -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::core::ffi::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::core::ffi::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub mod _bindgen_ty_5 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_IP: Type = 0; - pub const IPPROTO_ICMP: Type = 1; - pub const IPPROTO_IGMP: Type = 2; - pub const IPPROTO_IPIP: Type = 4; - pub const IPPROTO_TCP: Type = 6; - pub const IPPROTO_EGP: Type = 8; - pub const IPPROTO_PUP: Type = 12; - pub const IPPROTO_UDP: Type = 17; - pub const IPPROTO_IDP: Type = 22; - pub const IPPROTO_TP: Type = 29; - pub const IPPROTO_DCCP: Type = 33; - pub const IPPROTO_IPV6: Type = 41; - pub const IPPROTO_RSVP: Type = 46; - pub const IPPROTO_GRE: Type = 47; - pub const IPPROTO_ESP: Type = 50; - pub const IPPROTO_AH: Type = 51; - pub const IPPROTO_MTP: Type = 92; - pub const IPPROTO_BEETPH: Type = 94; - pub const IPPROTO_ENCAP: Type = 98; - pub const IPPROTO_PIM: Type = 103; - pub const IPPROTO_COMP: Type = 108; - pub const IPPROTO_SCTP: Type = 132; - pub const IPPROTO_UDPLITE: Type = 136; - pub const IPPROTO_MPLS: Type = 137; - pub const IPPROTO_ETHERNET: Type = 143; - pub const IPPROTO_RAW: Type = 255; - pub const IPPROTO_MPTCP: Type = 262; - pub const IPPROTO_MAX: Type = 263; -} -pub mod _bindgen_ty_6 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_HOPOPTS: Type = 0; - pub const IPPROTO_ROUTING: Type = 43; - pub const IPPROTO_FRAGMENT: Type = 44; - pub const IPPROTO_ICMPV6: Type = 58; - pub const IPPROTO_NONE: Type = 59; - pub const IPPROTO_DSTOPTS: Type = 60; - pub const IPPROTO_MH: Type = 135; -} -pub type in_port_t = u16; -pub mod _bindgen_ty_7 { - pub type Type = ::core::ffi::c_uint; - pub const IPPORT_ECHO: Type = 7; - pub const IPPORT_DISCARD: Type = 9; - pub const IPPORT_SYSTAT: Type = 11; - pub const IPPORT_DAYTIME: Type = 13; - pub const IPPORT_NETSTAT: Type = 15; - pub const IPPORT_FTP: Type = 21; - pub const IPPORT_TELNET: Type = 23; - pub const IPPORT_SMTP: Type = 25; - pub const IPPORT_TIMESERVER: Type = 37; - pub const IPPORT_NAMESERVER: Type = 42; - pub const IPPORT_WHOIS: Type = 43; - pub const IPPORT_MTP: Type = 57; - pub const IPPORT_TFTP: Type = 69; - pub const IPPORT_RJE: Type = 77; - pub const IPPORT_FINGER: Type = 79; - pub const IPPORT_TTYLINK: Type = 87; - pub const IPPORT_SUPDUP: Type = 95; - pub const IPPORT_EXECSERVER: Type = 512; - pub const IPPORT_LOGINSERVER: Type = 513; - pub const IPPORT_CMDSERVER: Type = 514; - pub const IPPORT_EFSSERVER: Type = 520; - pub const IPPORT_BIFFUDP: Type = 512; - pub const IPPORT_WHOSERVER: Type = 513; - pub const IPPORT_ROUTESERVER: Type = 520; - pub const IPPORT_RESERVED: Type = 1024; - pub const IPPORT_USERRESERVED: Type = 5000; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::core::ffi::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::core::ffi::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::core::ffi::c_char, - pub r_aliases: *mut *mut ::core::ffi::c_char, - pub r_number: ::core::ffi::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::core::ffi::c_char, - pub n_aliases: *mut *mut ::core::ffi::c_char, - pub n_addrtype: ::core::ffi::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct hostent { @@ -8022,60 +5916,6 @@ impl Default for hostent { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::core::ffi::c_char, - pub s_aliases: *mut *mut ::core::ffi::c_char, - pub s_port: ::core::ffi::c_int, - pub s_proto: *mut ::core::ffi::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::core::ffi::c_char, - pub p_aliases: *mut *mut ::core::ffi::c_char, - pub p_proto: ::core::ffi::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::core::ffi::c_int, - pub ai_family: ::core::ffi::c_int, - pub ai_socktype: ::core::ffi::c_int, - pub ai_protocol: ::core::ffi::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::core::ffi::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct passwd { pub pw_name: *mut ::core::ffi::c_char, pub pw_passwd: *mut ::core::ffi::c_char, @@ -8095,16 +5935,6 @@ impl Default for passwd { } } pub type pgsocket = ::core::ffi::c_int; -pub type float_t = f32; -pub type double_t = f64; -pub mod _bindgen_ty_8 { - pub type Type = ::core::ffi::c_uint; - pub const FP_NAN: Type = 0; - pub const FP_INFINITE: Type = 1; - pub const FP_ZERO: Type = 2; - pub const FP_SUBNORMAL: Type = 3; - pub const FP_NORMAL: Type = 4; -} pub type qsort_arg_comparator = ::core::option::Option< unsafe extern "C" fn( a: *const ::core::ffi::c_void, @@ -8121,7 +5951,6 @@ pub struct __jmp_buf_tag { pub __mask_was_saved: ::core::ffi::c_int, pub __saved_mask: __sigset_t, } -pub type jmp_buf = [__jmp_buf_tag; 1usize]; pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -9114,6 +6943,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_off_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_off_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn lp_flags(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } } @@ -9125,6 +6976,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_flags_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 15usize, + 2u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_flags_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 15usize, + 2u8, + val as u64, + ) + } + } + #[inline] pub fn lp_len(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } } @@ -9136,6 +7009,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_len_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 17usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_len_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 17usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( lp_off: ::core::ffi::c_uint, lp_flags: ::core::ffi::c_uint, @@ -9188,34 +7083,6 @@ impl Default for HeapTupleData { } } pub type HeapTuple = *mut HeapTupleData; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::core::ffi::c_short, - pub l_whence: ::core::ffi::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::core::ffi::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; pub type TimeLineID = uint32; @@ -9532,36 +7399,6 @@ impl Default for TupleConversionMap { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::core::ffi::c_int, - pub tm_min: ::core::ffi::c_int, - pub tm_hour: ::core::ffi::c_int, - pub tm_mday: ::core::ffi::c_int, - pub tm_mon: ::core::ffi::c_int, - pub tm_year: ::core::ffi::c_int, - pub tm_wday: ::core::ffi::c_int, - pub tm_yday: ::core::ffi::c_int, - pub tm_isdst: ::core::ffi::c_int, - pub tm_gmtoff: ::core::ffi::c_long, - pub tm_zone: *const ::core::ffi::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} pub type instr_time = timespec; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] @@ -12481,18 +10318,6 @@ impl Default for dirent { } } } -pub mod _bindgen_ty_9 { - pub type Type = ::core::ffi::c_uint; - pub const DT_UNKNOWN: Type = 0; - pub const DT_FIFO: Type = 1; - pub const DT_CHR: Type = 2; - pub const DT_DIR: Type = 4; - pub const DT_BLK: Type = 6; - pub const DT_REG: Type = 8; - pub const DT_LNK: Type = 10; - pub const DT_SOCK: Type = 12; - pub const DT_WHT: Type = 14; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { @@ -18825,586 +16650,13 @@ pub mod TypeFuncClass { pub const TYPEFUNC_OTHER: Type = 4; } pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::core::ffi::c_int, - pub sival_ptr: *mut ::core::ffi::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::core::ffi::c_int, - pub si_errno: ::core::ffi::c_int, - pub si_code: ::core::ffi::c_int, - pub __pad0: ::core::ffi::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::core::ffi::c_int, - pub si_overrun: ::core::ffi::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::core::ffi::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::core::ffi::c_void, - pub si_addr_lsb: ::core::ffi::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::core::ffi::c_void, - pub _upper: *mut ::core::ffi::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::core::ffi::c_long, - pub si_fd: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::core::ffi::c_void, - pub _syscall: ::core::ffi::c_int, - pub _arch: ::core::ffi::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_10 { - pub type Type = ::core::ffi::c_int; - pub const SI_ASYNCNL: Type = -60; - pub const SI_DETHREAD: Type = -7; - pub const SI_TKILL: Type = -6; - pub const SI_SIGIO: Type = -5; - pub const SI_ASYNCIO: Type = -4; - pub const SI_MESGQ: Type = -3; - pub const SI_TIMER: Type = -2; - pub const SI_QUEUE: Type = -1; - pub const SI_USER: Type = 0; - pub const SI_KERNEL: Type = 128; -} -pub mod _bindgen_ty_11 { - pub type Type = ::core::ffi::c_uint; - pub const ILL_ILLOPC: Type = 1; - pub const ILL_ILLOPN: Type = 2; - pub const ILL_ILLADR: Type = 3; - pub const ILL_ILLTRP: Type = 4; - pub const ILL_PRVOPC: Type = 5; - pub const ILL_PRVREG: Type = 6; - pub const ILL_COPROC: Type = 7; - pub const ILL_BADSTK: Type = 8; - pub const ILL_BADIADDR: Type = 9; -} -pub mod _bindgen_ty_12 { - pub type Type = ::core::ffi::c_uint; - pub const FPE_INTDIV: Type = 1; - pub const FPE_INTOVF: Type = 2; - pub const FPE_FLTDIV: Type = 3; - pub const FPE_FLTOVF: Type = 4; - pub const FPE_FLTUND: Type = 5; - pub const FPE_FLTRES: Type = 6; - pub const FPE_FLTINV: Type = 7; - pub const FPE_FLTSUB: Type = 8; - pub const FPE_FLTUNK: Type = 14; - pub const FPE_CONDTRAP: Type = 15; -} -pub mod _bindgen_ty_13 { - pub type Type = ::core::ffi::c_uint; - pub const SEGV_MAPERR: Type = 1; - pub const SEGV_ACCERR: Type = 2; - pub const SEGV_BNDERR: Type = 3; - pub const SEGV_PKUERR: Type = 4; - pub const SEGV_ACCADI: Type = 5; - pub const SEGV_ADIDERR: Type = 6; - pub const SEGV_ADIPERR: Type = 7; - pub const SEGV_MTEAERR: Type = 8; - pub const SEGV_MTESERR: Type = 9; -} -pub mod _bindgen_ty_14 { - pub type Type = ::core::ffi::c_uint; - pub const BUS_ADRALN: Type = 1; - pub const BUS_ADRERR: Type = 2; - pub const BUS_OBJERR: Type = 3; - pub const BUS_MCEERR_AR: Type = 4; - pub const BUS_MCEERR_AO: Type = 5; -} -pub mod _bindgen_ty_15 { - pub type Type = ::core::ffi::c_uint; - pub const CLD_EXITED: Type = 1; - pub const CLD_KILLED: Type = 2; - pub const CLD_DUMPED: Type = 3; - pub const CLD_TRAPPED: Type = 4; - pub const CLD_STOPPED: Type = 5; - pub const CLD_CONTINUED: Type = 6; -} -pub mod _bindgen_ty_16 { - pub type Type = ::core::ffi::c_uint; - pub const POLL_IN: Type = 1; - pub const POLL_OUT: Type = 2; - pub const POLL_MSG: Type = 3; - pub const POLL_ERR: Type = 4; - pub const POLL_PRI: Type = 5; - pub const POLL_HUP: Type = 6; -} -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::core::ffi::c_int, - pub sigev_notify: ::core::ffi::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::core::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub mod _bindgen_ty_17 { +pub mod _bindgen_ty_19 { pub type Type = ::core::ffi::c_uint; pub const SIGEV_SIGNAL: Type = 0; pub const SIGEV_NONE: Type = 1; pub const SIGEV_THREAD: Type = 2; pub const SIGEV_THREAD_ID: Type = 4; } -pub type __sighandler_t = ::core::option::Option; -pub type sig_t = __sighandler_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::core::ffi::c_int, - pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::core::option::Option< - unsafe extern "C" fn( - arg1: ::core::ffi::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::core::ffi::c_void, - ), - >, -} -impl Default for sigaction__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigaction { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::core::ffi::c_ushort, - pub gs: ::core::ffi::c_ushort, - pub fs: ::core::ffi::c_ushort, - pub __pad0: ::core::ffi::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_flags: ::core::ffi::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type greg_t = ::core::ffi::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::core::ffi::c_ulonglong; 8usize], -} -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::core::ffi::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::core::ffi::c_ulonglong; 4usize], -} -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_18 { - pub type Type = ::core::ffi::c_uint; - pub const SS_ONSTACK: Type = 1; - pub const SS_DISABLE: Type = 2; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_onstack: ::core::ffi::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -19495,21 +16747,6 @@ pub mod ProgressCommandType { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::core::ffi::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct SockAddr { pub addr: sockaddr_storage, pub salen: socklen_t, @@ -26202,6 +23439,7 @@ pub struct ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { pub fcinfo_data: FunctionCallInfo, pub fn_addr: PGFunction, pub nargs: ::core::ffi::c_int, + pub make_ro: bool, } impl Default for ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { fn default() -> Self { @@ -29753,7 +26991,7 @@ pub mod PLpgSQL_stmt_type { pub const PLPGSQL_STMT_COMMIT: Type = 25; pub const PLPGSQL_STMT_ROLLBACK: Type = 26; } -pub mod _bindgen_ty_19 { +pub mod _bindgen_ty_25 { pub type Type = ::core::ffi::c_uint; pub const PLPGSQL_RC_OK: Type = 0; pub const PLPGSQL_RC_EXIT: Type = 1; @@ -32096,6 +29334,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn haspos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_haspos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u32) } } @@ -32107,6 +29367,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 11u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 11u8, + val as u64, + ) + } + } + #[inline] pub fn pos(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -32118,6 +29400,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn pos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_pos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( haspos: uint32, len: uint32, @@ -32184,6 +29488,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn length_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 12u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_length_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 12u8, + val as u64, + ) + } + } + #[inline] pub fn distance(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -32195,6 +29521,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn distance_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_distance_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1(length: uint32, distance: uint32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 12u8, { @@ -32287,6 +29635,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn selected_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_selected_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn in_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } @@ -32298,6 +29668,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn in__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_in_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn replace(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } @@ -32309,6 +29701,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn replace_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 2usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_replace_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 2usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn repeated(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } @@ -32320,6 +29734,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn repeated_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 3usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_repeated_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 3usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn skip(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } @@ -32331,6 +29767,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn skip_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 4usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_skip_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 4usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn unused(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) } } @@ -32342,6 +29800,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn unused_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 5usize, + 3u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_unused_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 5usize, + 3u8, + val as u64, + ) + } + } + #[inline] pub fn type_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } } @@ -32353,6 +29833,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn type__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 8usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_type_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 8usize, + 8u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } } @@ -32364,6 +29866,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 16usize, + 16u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 16usize, + 16u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( selected: uint32, in_: uint32, @@ -33268,11 +30792,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -33347,58 +30866,13 @@ pub struct SnapBuild { pub _address: u8, } #[pgrx_macros::pg_guard] -extern "C" { - #[link_name = "\u{1}__isoc99_fscanf"] - pub fn fscanf1( - __stream: *mut FILE, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_scanf"] - pub fn scanf1(__format: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_sscanf"] - pub fn sscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vfscanf"] - pub fn vfscanf1( - __s: *mut FILE, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vscanf"] - pub fn vscanf1( - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vsscanf"] - pub fn vsscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - pub fn alloca(__size: ::core::ffi::c_ulong) -> *mut ::core::ffi::c_void; - pub fn atexit(__func: ::core::option::Option) -> ::core::ffi::c_int; - pub fn at_quick_exit( - __func: ::core::option::Option, - ) -> ::core::ffi::c_int; - pub fn __memcmpeq( - __s1: *const ::core::ffi::c_void, - __s2: *const ::core::ffi::c_void, - __n: usize, - ) -> ::core::ffi::c_int; +unsafe extern "C" { pub fn ExceptionalCondition( conditionName: *const ::core::ffi::c_char, errorType: *const ::core::ffi::c_char, fileName: *const ::core::ffi::c_char, lineNumber: ::core::ffi::c_int, ) -> !; - pub fn bindresvport6( - __sockfd: ::core::ffi::c_int, - __sock_in: *mut sockaddr_in6, - ) -> ::core::ffi::c_int; pub fn pg_set_noblock(sock: pgsocket) -> bool; pub fn pg_set_block(sock: pgsocket) -> bool; pub fn has_drive_prefix(filename: *const ::core::ffi::c_char) -> bool; @@ -33413,6 +30887,7 @@ extern "C" { tail: *const ::core::ffi::c_char, ); pub fn canonicalize_path(path: *mut ::core::ffi::c_char); + pub fn canonicalize_path_enc(path: *mut ::core::ffi::c_char, encoding: ::core::ffi::c_int); pub fn make_native_path(path: *mut ::core::ffi::c_char); pub fn cleanup_path(path: *mut ::core::ffi::c_char); pub fn path_contains_parent_reference(path: *const ::core::ffi::c_char) -> bool; @@ -33505,22 +30980,42 @@ extern "C" { pub fn pg_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_toupper(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; + pub fn pg_vsnprintf( + str_: *mut ::core::ffi::c_char, + count: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_snprintf( str_: *mut ::core::ffi::c_char, count: usize, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vsprintf( + str_: *mut ::core::ffi::c_char, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_sprintf( str_: *mut ::core::ffi::c_char, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vfprintf( + stream: *mut FILE, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_fprintf( stream: *mut FILE, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vprintf( + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_printf(fmt: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; pub fn pg_strfromd( str_: *mut ::core::ffi::c_char, @@ -33547,210 +31042,6 @@ extern "C" { uid: *mut uid_t, gid: *mut gid_t, ) -> ::core::ffi::c_int; - pub fn __acos(__x: f64) -> f64; - pub fn __asin(__x: f64) -> f64; - pub fn __atan(__x: f64) -> f64; - pub fn __atan2(__y: f64, __x: f64) -> f64; - pub fn __cos(__x: f64) -> f64; - pub fn __sin(__x: f64) -> f64; - pub fn __tan(__x: f64) -> f64; - pub fn __cosh(__x: f64) -> f64; - pub fn __sinh(__x: f64) -> f64; - pub fn __tanh(__x: f64) -> f64; - pub fn __acosh(__x: f64) -> f64; - pub fn __asinh(__x: f64) -> f64; - pub fn __atanh(__x: f64) -> f64; - pub fn __exp(__x: f64) -> f64; - pub fn __frexp(__x: f64, __exponent: *mut ::core::ffi::c_int) -> f64; - pub fn __ldexp(__x: f64, __exponent: ::core::ffi::c_int) -> f64; - pub fn __log(__x: f64) -> f64; - pub fn __log10(__x: f64) -> f64; - pub fn __modf(__x: f64, __iptr: *mut f64) -> f64; - pub fn __expm1(__x: f64) -> f64; - pub fn __log1p(__x: f64) -> f64; - pub fn __logb(__x: f64) -> f64; - pub fn __exp2(__x: f64) -> f64; - pub fn __log2(__x: f64) -> f64; - pub fn __pow(__x: f64, __y: f64) -> f64; - pub fn __sqrt(__x: f64) -> f64; - pub fn __hypot(__x: f64, __y: f64) -> f64; - pub fn __cbrt(__x: f64) -> f64; - pub fn __ceil(__x: f64) -> f64; - pub fn __fabs(__x: f64) -> f64; - pub fn __floor(__x: f64) -> f64; - pub fn __fmod(__x: f64, __y: f64) -> f64; - pub fn __drem(__x: f64, __y: f64) -> f64; - pub fn __significand(__x: f64) -> f64; - pub fn __copysign(__x: f64, __y: f64) -> f64; - pub fn __nan(__tagb: *const ::core::ffi::c_char) -> f64; - pub fn __j0(arg1: f64) -> f64; - pub fn __j1(arg1: f64) -> f64; - pub fn __jn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __y0(arg1: f64) -> f64; - pub fn __y1(arg1: f64) -> f64; - pub fn __yn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __erf(arg1: f64) -> f64; - pub fn __erfc(arg1: f64) -> f64; - pub fn __lgamma(arg1: f64) -> f64; - pub fn __tgamma(arg1: f64) -> f64; - pub fn __gamma(arg1: f64) -> f64; - pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::core::ffi::c_int) -> f64; - pub fn __rint(__x: f64) -> f64; - pub fn __nextafter(__x: f64, __y: f64) -> f64; - pub fn __nexttoward(__x: f64, __y: u128) -> f64; - pub fn __remainder(__x: f64, __y: f64) -> f64; - pub fn __scalbn(__x: f64, __n: ::core::ffi::c_int) -> f64; - pub fn __ilogb(__x: f64) -> ::core::ffi::c_int; - pub fn __scalbln(__x: f64, __n: ::core::ffi::c_long) -> f64; - pub fn __nearbyint(__x: f64) -> f64; - pub fn __round(__x: f64) -> f64; - pub fn __trunc(__x: f64) -> f64; - pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::core::ffi::c_int) -> f64; - pub fn __lrint(__x: f64) -> ::core::ffi::c_long; - pub fn __llrint(__x: f64) -> ::core::ffi::c_longlong; - pub fn __lround(__x: f64) -> ::core::ffi::c_long; - pub fn __llround(__x: f64) -> ::core::ffi::c_longlong; - pub fn __fdim(__x: f64, __y: f64) -> f64; - pub fn __fmax(__x: f64, __y: f64) -> f64; - pub fn __fmin(__x: f64, __y: f64) -> f64; - pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64; - pub fn __scalb(__x: f64, __n: f64) -> f64; - pub fn __acosf(__x: f32) -> f32; - pub fn __asinf(__x: f32) -> f32; - pub fn __atanf(__x: f32) -> f32; - pub fn __atan2f(__y: f32, __x: f32) -> f32; - pub fn __cosf(__x: f32) -> f32; - pub fn __sinf(__x: f32) -> f32; - pub fn __tanf(__x: f32) -> f32; - pub fn __coshf(__x: f32) -> f32; - pub fn __sinhf(__x: f32) -> f32; - pub fn __tanhf(__x: f32) -> f32; - pub fn __acoshf(__x: f32) -> f32; - pub fn __asinhf(__x: f32) -> f32; - pub fn __atanhf(__x: f32) -> f32; - pub fn __expf(__x: f32) -> f32; - pub fn __frexpf(__x: f32, __exponent: *mut ::core::ffi::c_int) -> f32; - pub fn __ldexpf(__x: f32, __exponent: ::core::ffi::c_int) -> f32; - pub fn __logf(__x: f32) -> f32; - pub fn __log10f(__x: f32) -> f32; - pub fn __modff(__x: f32, __iptr: *mut f32) -> f32; - pub fn __expm1f(__x: f32) -> f32; - pub fn __log1pf(__x: f32) -> f32; - pub fn __logbf(__x: f32) -> f32; - pub fn __exp2f(__x: f32) -> f32; - pub fn __log2f(__x: f32) -> f32; - pub fn __powf(__x: f32, __y: f32) -> f32; - pub fn __sqrtf(__x: f32) -> f32; - pub fn __hypotf(__x: f32, __y: f32) -> f32; - pub fn __cbrtf(__x: f32) -> f32; - pub fn __ceilf(__x: f32) -> f32; - pub fn __fabsf(__x: f32) -> f32; - pub fn __floorf(__x: f32) -> f32; - pub fn __fmodf(__x: f32, __y: f32) -> f32; - pub fn __dremf(__x: f32, __y: f32) -> f32; - pub fn __significandf(__x: f32) -> f32; - pub fn __copysignf(__x: f32, __y: f32) -> f32; - pub fn __nanf(__tagb: *const ::core::ffi::c_char) -> f32; - pub fn __j0f(arg1: f32) -> f32; - pub fn __j1f(arg1: f32) -> f32; - pub fn __jnf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __y0f(arg1: f32) -> f32; - pub fn __y1f(arg1: f32) -> f32; - pub fn __ynf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __erff(arg1: f32) -> f32; - pub fn __erfcf(arg1: f32) -> f32; - pub fn __lgammaf(arg1: f32) -> f32; - pub fn __tgammaf(arg1: f32) -> f32; - pub fn __gammaf(arg1: f32) -> f32; - pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::core::ffi::c_int) -> f32; - pub fn __rintf(__x: f32) -> f32; - pub fn __nextafterf(__x: f32, __y: f32) -> f32; - pub fn __nexttowardf(__x: f32, __y: u128) -> f32; - pub fn __remainderf(__x: f32, __y: f32) -> f32; - pub fn __scalbnf(__x: f32, __n: ::core::ffi::c_int) -> f32; - pub fn __ilogbf(__x: f32) -> ::core::ffi::c_int; - pub fn __scalblnf(__x: f32, __n: ::core::ffi::c_long) -> f32; - pub fn __nearbyintf(__x: f32) -> f32; - pub fn __roundf(__x: f32) -> f32; - pub fn __truncf(__x: f32) -> f32; - pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::core::ffi::c_int) -> f32; - pub fn __lrintf(__x: f32) -> ::core::ffi::c_long; - pub fn __llrintf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __lroundf(__x: f32) -> ::core::ffi::c_long; - pub fn __llroundf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __fdimf(__x: f32, __y: f32) -> f32; - pub fn __fmaxf(__x: f32, __y: f32) -> f32; - pub fn __fminf(__x: f32, __y: f32) -> f32; - pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32; - pub fn __scalbf(__x: f32, __n: f32) -> f32; - pub fn __acosl(__x: u128) -> u128; - pub fn __asinl(__x: u128) -> u128; - pub fn __atanl(__x: u128) -> u128; - pub fn __atan2l(__y: u128, __x: u128) -> u128; - pub fn __cosl(__x: u128) -> u128; - pub fn __sinl(__x: u128) -> u128; - pub fn __tanl(__x: u128) -> u128; - pub fn __coshl(__x: u128) -> u128; - pub fn __sinhl(__x: u128) -> u128; - pub fn __tanhl(__x: u128) -> u128; - pub fn __acoshl(__x: u128) -> u128; - pub fn __asinhl(__x: u128) -> u128; - pub fn __atanhl(__x: u128) -> u128; - pub fn __expl(__x: u128) -> u128; - pub fn __frexpl(__x: u128, __exponent: *mut ::core::ffi::c_int) -> u128; - pub fn __ldexpl(__x: u128, __exponent: ::core::ffi::c_int) -> u128; - pub fn __logl(__x: u128) -> u128; - pub fn __log10l(__x: u128) -> u128; - pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128; - pub fn __expm1l(__x: u128) -> u128; - pub fn __log1pl(__x: u128) -> u128; - pub fn __logbl(__x: u128) -> u128; - pub fn __exp2l(__x: u128) -> u128; - pub fn __log2l(__x: u128) -> u128; - pub fn __powl(__x: u128, __y: u128) -> u128; - pub fn __sqrtl(__x: u128) -> u128; - pub fn __hypotl(__x: u128, __y: u128) -> u128; - pub fn __cbrtl(__x: u128) -> u128; - pub fn __ceill(__x: u128) -> u128; - pub fn __fabsl(__x: u128) -> u128; - pub fn __floorl(__x: u128) -> u128; - pub fn __fmodl(__x: u128, __y: u128) -> u128; - pub fn __dreml(__x: u128, __y: u128) -> u128; - pub fn __significandl(__x: u128) -> u128; - pub fn __copysignl(__x: u128, __y: u128) -> u128; - pub fn __nanl(__tagb: *const ::core::ffi::c_char) -> u128; - pub fn __j0l(arg1: u128) -> u128; - pub fn __j1l(arg1: u128) -> u128; - pub fn __jnl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __y0l(arg1: u128) -> u128; - pub fn __y1l(arg1: u128) -> u128; - pub fn __ynl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __erfl(arg1: u128) -> u128; - pub fn __erfcl(arg1: u128) -> u128; - pub fn __lgammal(arg1: u128) -> u128; - pub fn __tgammal(arg1: u128) -> u128; - pub fn __gammal(arg1: u128) -> u128; - pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::core::ffi::c_int) -> u128; - pub fn __rintl(__x: u128) -> u128; - pub fn __nextafterl(__x: u128, __y: u128) -> u128; - pub fn __nexttowardl(__x: u128, __y: u128) -> u128; - pub fn __remainderl(__x: u128, __y: u128) -> u128; - pub fn __scalbnl(__x: u128, __n: ::core::ffi::c_int) -> u128; - pub fn __ilogbl(__x: u128) -> ::core::ffi::c_int; - pub fn __scalblnl(__x: u128, __n: ::core::ffi::c_long) -> u128; - pub fn __nearbyintl(__x: u128) -> u128; - pub fn __roundl(__x: u128) -> u128; - pub fn __truncl(__x: u128) -> u128; - pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::core::ffi::c_int) -> u128; - pub fn __lrintl(__x: u128) -> ::core::ffi::c_long; - pub fn __llrintl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __lroundl(__x: u128) -> ::core::ffi::c_long; - pub fn __llroundl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __fdiml(__x: u128, __y: u128) -> u128; - pub fn __fmaxl(__x: u128, __y: u128) -> u128; - pub fn __fminl(__x: u128, __y: u128) -> u128; - pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128; - pub fn __scalbl(__x: u128, __n: u128) -> u128; pub fn strlcat( dst: *mut ::core::ffi::c_char, src: *const ::core::ffi::c_char, @@ -33761,6 +31052,21 @@ extern "C" { src: *const ::core::ffi::c_char, siz: usize, ) -> usize; + pub fn pqGetpwuid( + uid: uid_t, + resultbuf: *mut passwd, + buffer: *mut ::core::ffi::c_char, + buflen: usize, + result: *mut *mut passwd, + ) -> ::core::ffi::c_int; + pub fn pqGethostbyname( + name: *const ::core::ffi::c_char, + resultbuf: *mut hostent, + buffer: *mut ::core::ffi::c_char, + buflen: usize, + result: *mut *mut hostent, + herrno: *mut ::core::ffi::c_int, + ) -> ::core::ffi::c_int; pub fn pg_qsort( base: *mut ::core::ffi::c_void, nel: usize, @@ -33937,6 +31243,12 @@ extern "C" { pub fn pnstrdup(in_: *const ::core::ffi::c_char, len: Size) -> *mut ::core::ffi::c_char; pub fn pchomp(in_: *const ::core::ffi::c_char) -> *mut ::core::ffi::c_char; pub fn psprintf(fmt: *const ::core::ffi::c_char, ...) -> *mut ::core::ffi::c_char; + pub fn pvsnprintf( + buf: *mut ::core::ffi::c_char, + len: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> usize; pub static mut no_such_variable: ::core::ffi::c_int; pub fn outNode(str_: *mut StringInfoData, obj: *const ::core::ffi::c_void); pub fn outToken(str_: *mut StringInfoData, s: *const ::core::ffi::c_char); @@ -34727,6 +32039,11 @@ extern "C" { pub fn initStringInfo(str_: StringInfo); pub fn resetStringInfo(str_: StringInfo); pub fn appendStringInfo(str_: StringInfo, fmt: *const ::core::ffi::c_char, ...); + pub fn appendStringInfoVA( + str_: StringInfo, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn appendStringInfoString(str_: StringInfo, s: *const ::core::ffi::c_char); pub fn appendStringInfoChar(str_: StringInfo, ch: ::core::ffi::c_char); pub fn appendStringInfoSpaces(str_: StringInfo, count: ::core::ffi::c_int); @@ -36245,6 +33562,7 @@ extern "C" { pub fn PgArchCanRestart() -> bool; pub fn PgArchiverMain() -> !; pub fn PgArchWakeup(); + pub fn PgArchForceDirScan(); pub fn pgstat_progress_start_command(cmdtype: ProgressCommandType::Type, relid: Oid); pub fn pgstat_progress_update_param(index: ::core::ffi::c_int, val: int64); pub fn pgstat_progress_update_multi_param( @@ -36870,6 +34188,12 @@ extern "C" { oidcol: AttrNumber, objectId: Oid, ) -> HeapTuple; + pub fn get_catalog_object_by_oid_extended( + catalog: Relation, + oidcol: AttrNumber, + objectId: Oid, + locktup: bool, + ) -> HeapTuple; pub fn getObjectDescription( object: *const ObjectAddress, missing_ok: bool, @@ -36964,6 +34288,13 @@ extern "C" { nforks: ::core::ffi::c_int, nblocks: *mut BlockNumber, ); + pub fn smgrtruncate2( + reln: SMgrRelation, + forknum: *mut ForkNumber::Type, + nforks: ::core::ffi::c_int, + old_nblocks: *mut BlockNumber, + nblocks: *mut BlockNumber, + ); pub fn smgrimmedsync(reln: SMgrRelation, forknum: ForkNumber::Type); pub fn AtEOXact_SMgr(); pub fn RelationIncrementReferenceCount(rel: Relation); @@ -38712,6 +36043,24 @@ extern "C" { wantLength: uint32, ); pub fn WALReadRaiseError(errinfo: *mut WALReadError); + pub fn IsSystemRelation(relation: Relation) -> bool; + pub fn IsToastRelation(relation: Relation) -> bool; + pub fn IsCatalogRelation(relation: Relation) -> bool; + pub fn IsInplaceUpdateRelation(relation: Relation) -> bool; + pub fn IsSystemClass(relid: Oid, reltuple: Form_pg_class) -> bool; + pub fn IsToastClass(reltuple: Form_pg_class) -> bool; + pub fn IsCatalogRelationOid(relid: Oid) -> bool; + pub fn IsInplaceUpdateOid(relid: Oid) -> bool; + pub fn IsCatalogNamespace(namespaceId: Oid) -> bool; + pub fn IsToastNamespace(namespaceId: Oid) -> bool; + pub fn IsReservedName(name: *const ::core::ffi::c_char) -> bool; + pub fn IsSharedRelation(relationId: Oid) -> bool; + pub fn GetNewOidWithIndex(relation: Relation, indexId: Oid, oidcolumn: AttrNumber) -> Oid; + pub fn GetNewRelFileNode( + reltablespace: Oid, + pg_class: Relation, + relpersistence: ::core::ffi::c_char, + ) -> Oid; pub fn AcquireDeletionLock(object: *const ObjectAddress, flags: ::core::ffi::c_int); pub fn ReleaseDeletionLock(object: *const ObjectAddress); pub fn performDeletion( @@ -41061,6 +38410,7 @@ extern "C" { pub fn pg_char_to_encoding(name: *const ::core::ffi::c_char) -> ::core::ffi::c_int; pub fn pg_encoding_to_char(encoding: ::core::ffi::c_int) -> *const ::core::ffi::c_char; pub fn pg_valid_server_encoding_id(encoding: ::core::ffi::c_int) -> ::core::ffi::c_int; + pub fn pg_encoding_set_invalid(encoding: ::core::ffi::c_int, dst: *mut ::core::ffi::c_char); pub fn pg_encoding_mblen( encoding: ::core::ffi::c_int, mbstr: *const ::core::ffi::c_char, @@ -43583,6 +40933,13 @@ extern "C" { targetTypmod: int32, constructName: *const ::core::ffi::c_char, ) -> *mut Node; + pub fn coerce_null_to_domain( + typid: Oid, + typmod: int32, + collation: Oid, + typlen: ::core::ffi::c_int, + typbyval: bool, + ) -> *mut Node; pub fn parser_coercion_errposition( pstate: *mut ParseState, coerce_location: ::core::ffi::c_int, @@ -48306,6 +45663,7 @@ extern "C" { ) -> *mut CatCList; pub fn ReleaseCatCacheList(list: *mut CatCList); pub fn ResetCatalogCaches(); + pub fn ResetCatalogCachesExt(debug_discard: bool); pub fn CatalogCacheFlushCatalog(catId: Oid); pub fn CatCacheInvalidate(cache: *mut CatCache, hashValue: uint32); pub fn PrepareToInvalidateCacheTuple( @@ -53326,6 +50684,14 @@ pub const XmlExprOp_IS_DOCUMENT: u32 = 7; pub const XmlOptionType_XMLOPTION_DOCUMENT: u32 = 0; #[deprecated(since = "0.12.0", note = "you want pg_sys::XmlOptionType::XMLOPTION_CONTENT")] pub const XmlOptionType_XMLOPTION_CONTENT: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_TID")] +pub const __pid_type_F_OWNER_TID: u32 = 0; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PID")] +pub const __pid_type_F_OWNER_PID: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PGRP")] +pub const __pid_type_F_OWNER_PGRP: u32 = 2; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_GID")] +pub const __pid_type_F_OWNER_GID: u32 = 2; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_STREAM")] pub const __socket_type_SOCK_STREAM: u32 = 1; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_DGRAM")] diff --git a/pgrx-pg-sys/src/include/pg15.rs b/pgrx-pg-sys/src/include/pg15.rs index e3bd609083..bcef47ecf3 100644 --- a/pgrx-pg-sys/src/include/pg15.rs +++ b/pgrx-pg-sys/src/include/pg15.rs @@ -22,28 +22,51 @@ 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]; + fn extract_bit(byte: u8, index: usize) -> bool { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } #[inline] - pub fn set_bit(&mut self, index: usize, val: bool) { + pub fn get_bit(&self, index: usize) -> 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 byte = self.storage.as_ref()[byte_index]; + Self::extract_bit(byte, index) + } + #[inline] + pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); + Self::extract_bit(byte, index) + } + #[inline] + fn change_bit(byte: u8, index: usize, val: bool) -> u8 { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { - *byte |= mask; + byte | mask } else { - *byte &= !mask; + byte & !mask } } #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + *byte = Self::change_bit(*byte, index, val); + } + #[inline] + pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); + *byte = Self::change_bit(*byte, index, val); + } + #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -59,6 +82,21 @@ where val } #[inline] + pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if Self::raw_get_bit(this, i + bit_offset) { + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + val |= 1 << index; + } + } + val + } + #[inline] pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -70,6 +108,18 @@ where self.set_bit(index + bit_offset, val_bit_is_set); } } + #[inline] + pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); + } + } } #[repr(C)] #[derive(Default)] @@ -126,54 +176,26 @@ pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; pub const DEF_PGPORT: u32 = 28815; -#[allow(unsafe_code)] -pub const DEF_PGPORT_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"28815\0") }; -#[allow(unsafe_code)] -pub const DLSUFFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b".so\0") }; +pub const DEF_PGPORT_STR: &::core::ffi::CStr = c"28815"; +pub const DLSUFFIX: &::core::ffi::CStr = c".so"; pub const ENABLE_THREAD_SAFETY: u32 = 1; -#[allow(unsafe_code)] -pub const INT64_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; +pub const INT64_MODIFIER: &::core::ffi::CStr = c"l"; pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; -#[allow(unsafe_code)] -pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql-bugs@lists.postgresql.org\0") -}; -#[allow(unsafe_code)] -pub const PACKAGE_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL 15.10\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_TARNAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_URL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"https://www.postgresql.org/\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"15.10\0") }; -#[allow(unsafe_code)] -pub const PG_KRB_SRVNAM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres\0") }; -#[allow(unsafe_code)] -pub const PG_MAJORVERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"15\0") }; +pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = c"pgsql-bugs@lists.postgresql.org"; +pub const PACKAGE_NAME: &::core::ffi::CStr = c"PostgreSQL"; +pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 15.12"; +pub const PACKAGE_TARNAME: &::core::ffi::CStr = c"postgresql"; +pub const PACKAGE_URL: &::core::ffi::CStr = c"https://www.postgresql.org/"; +pub const PACKAGE_VERSION: &::core::ffi::CStr = c"15.12"; +pub const PG_KRB_SRVNAM: &::core::ffi::CStr = c"postgres"; +pub const PG_MAJORVERSION: &::core::ffi::CStr = c"15"; pub const PG_MAJORVERSION_NUM: u32 = 15; -pub const PG_MINORVERSION_NUM: u32 = 10; +pub const PG_MINORVERSION_NUM: u32 = 12; pub const PG_USE_STDBOOL: u32 = 1; -#[allow(unsafe_code)] -pub const PG_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"15.10\0") }; -pub const PG_VERSION_NUM: u32 = 150010; -#[allow(unsafe_code)] -pub const PG_VERSION_STR: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"PostgreSQL 15.10 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0") -}; +pub const PG_VERSION: &::core::ffi::CStr = c"15.12"; +pub const PG_VERSION_NUM: u32 = 150012; +pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 15.12 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -189,9 +211,7 @@ pub const XLOG_BLCKSZ: u32 = 8192; pub const DEFAULT_XLOG_SEG_SIZE: u32 = 16777216; pub const NAMEDATALEN: u32 = 64; pub const FUNC_MAX_ARGS: u32 = 100; -#[allow(unsafe_code)] -pub const FMGR_ABI_EXTRA: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const FMGR_ABI_EXTRA: &::core::ffi::CStr = c"PostgreSQL"; pub const INDEX_MAX_KEYS: u32 = 32; pub const PARTITION_MAX_KEYS: u32 = 32; pub const USE_FLOAT8_BYVAL: u32 = 1; @@ -205,351 +225,15 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -#[allow(unsafe_code)] -pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -#[allow(unsafe_code)] -pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = c"/tmp"; +pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = c"PostgreSQL"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -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 = 35; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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_C2X: 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_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: 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 _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; -#[allow(unsafe_code)] -pub const P_tmpdir: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -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 __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 __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -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 __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 __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 __PTHREAD_MUTEX_HAVE_PREV: 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 EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; -pub const __bool_true_false_are_defined: u32 = 1; -pub const true_: u32 = 1; -pub const false_: u32 = 0; -#[allow(unsafe_code)] -pub const INT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%ld\0") }; -#[allow(unsafe_code)] -pub const UINT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%lu\0") }; +pub const SIG_ATOMIC_WIDTH: u32 = 32; +pub const INT64_FORMAT: &::core::ffi::CStr = c"%ld"; +pub const UINT64_FORMAT: &::core::ffi::CStr = c"%lu"; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; pub const PG_UINT8_MAX: u32 = 255; @@ -566,39 +250,16 @@ pub const STATUS_OK: u32 = 0; pub const STATUS_ERROR: i32 = -1; pub const STATUS_EOF: i32 = -2; pub const PG_BINARY: u32 = 0; -#[allow(unsafe_code)] -pub const PG_BINARY_A: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"a\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_R: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"r\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_W: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"w\0") }; +pub const PG_BINARY_A: &::core::ffi::CStr = c"a"; +pub const PG_BINARY_R: &::core::ffi::CStr = c"r"; +pub const PG_BINARY_W: &::core::ffi::CStr = c"w"; pub const PGINVALID_SOCKET: i32 = -1; -#[allow(unsafe_code)] -pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres (PostgreSQL) 15.10\n\0") }; -#[allow(unsafe_code)] -pub const EXE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const DEVNULL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/dev/null\0") }; +pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 15.12\n"; +pub const EXE: &::core::ffi::CStr = c""; +pub const DEVNULL: &::core::ffi::CStr = c"/dev/null"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -612,7 +273,6 @@ pub const NOTICE: u32 = 18; pub const WARNING: u32 = 19; pub const PGWARNING: u32 = 19; pub const WARNING_CLIENT_ONLY: u32 = 20; -pub const ERROR: u32 = 21; pub const PGERROR: u32 = 21; pub const FATAL: u32 = 22; pub const PANIC: u32 = 23; @@ -677,129 +337,6 @@ pub const LP_DEAD: u32 = 3; pub const SpecTokenOffsetNumber: u32 = 65534; pub const MovedPartitionsOffsetNumber: u32 = 65533; pub const FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; pub const OPEN_SYNC_FLAG: u32 = 1052672; pub const OPEN_DATASYNC_FLAG: u32 = 4096; @@ -1131,27 +668,10 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -#[allow(unsafe_code)] -pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Pg_magic_func\0") }; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = c"Pg_magic_func"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const PARAM_FLAG_CONST: u32 = 1; @@ -1263,101 +783,17 @@ pub const CURSOR_OPT_FAST_PLAN: u32 = 256; pub const CURSOR_OPT_GENERIC_PLAN: u32 = 512; pub const CURSOR_OPT_CUSTOM_PLAN: u32 = 1024; pub const CURSOR_OPT_PARALLEL_OK: u32 = 2048; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_dynshmem\0") }; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"mmap.\0") }; +pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = c"pg_dynshmem"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = c"mmap."; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const SIZEOF_DSA_POINTER: u32 = 8; -#[allow(unsafe_code)] -pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%016lx\0") }; +pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = c"%016lx"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1377,15 +813,9 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; pub const NO_MAX_DSIZE: i32 = -1; -pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; -pub const MAXNAMLEN: u32 = 255; -pub const PG_O_DIRECT: u32 = 0; -#[allow(unsafe_code)] -pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; -#[allow(unsafe_code)] -pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; +pub const PG_O_DIRECT: u32 = 16384; +pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = c"pgsql_tmp"; +pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = c"pgsql_tmp"; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const MAX_TIMESTAMP_PRECISION: u32 = 6; pub const MAX_INTERVAL_PRECISION: u32 = 6; @@ -1412,9 +842,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -#[allow(unsafe_code)] -pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_internal.init\0") }; +pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = c"pg_internal.init"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; @@ -1500,40 +928,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const NSIG: u32 = 65; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const __sigstack_defined: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1554,424 +952,8 @@ pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -#[allow(unsafe_code)] -pub const VALID_XFN_CHARS: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"0123456789ABCDEF.history.backup.partial\0") -}; +pub const VALID_XFN_CHARS: &::core::ffi::CStr = c"0123456789ABCDEF.history.backup.partial"; pub const PGSTAT_NUM_PROGRESS_PARAM: u32 = 20; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INET_ADDRSTRLEN: u32 = 16; -pub const INET6_ADDRSTRLEN: u32 = 46; -#[allow(unsafe_code)] -pub const _PATH_HEQUIV: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts.equiv\0") }; -#[allow(unsafe_code)] -pub const _PATH_HOSTS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts\0") }; -#[allow(unsafe_code)] -pub const _PATH_NETWORKS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/networks\0") }; -#[allow(unsafe_code)] -pub const _PATH_NSSWITCH_CONF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/nsswitch.conf\0") }; -#[allow(unsafe_code)] -pub const _PATH_PROTOCOLS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/protocols\0") }; -#[allow(unsafe_code)] -pub const _PATH_SERVICES: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/services\0") }; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; pub const MAX_STARTUP_PACKET_LENGTH: u32 = 10000; pub const AUTH_REQ_OK: u32 = 0; pub const AUTH_REQ_KRB4: u32 = 1; @@ -1995,18 +977,10 @@ pub const PG_WAIT_EXTENSION: u32 = 117440512; pub const PG_WAIT_IPC: u32 = 134217728; pub const PG_WAIT_TIMEOUT: u32 = 150994944; pub const PG_WAIT_IO: u32 = 167772160; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/pgstat.stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/pgstat.tmp\0") }; -#[allow(unsafe_code)] -pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat_tmp\0") }; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = c"pg_stat"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = c"pg_stat/pgstat.stat"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = c"pg_stat/pgstat.tmp"; +pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = c"pg_stat_tmp"; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638951; pub const SK_ISNULL: u32 = 1; pub const SK_UNARY: u32 = 2; @@ -2074,27 +1048,13 @@ pub const CHECKPOINT_CAUSE_XLOG: u32 = 128; pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -#[allow(unsafe_code)] -pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"recovery.signal\0") }; -#[allow(unsafe_code)] -pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"standby.signal\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label.old\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map.old\0") }; -#[allow(unsafe_code)] -pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"promote\0") }; +pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = c"recovery.signal"; +pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = c"standby.signal"; +pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = c"backup_label"; +pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = c"backup_label.old"; +pub const TABLESPACE_MAP: &::core::ffi::CStr = c"tablespace_map"; +pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = c"tablespace_map.old"; +pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = c"promote"; pub const XLOG_PAGE_MAGIC: u32 = 53520; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -2105,12 +1065,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -#[allow(unsafe_code)] -pub const XLOGDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_wal\0") }; -#[allow(unsafe_code)] -pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"global/pg_control\0") }; +pub const XLOGDIR: &::core::ffi::CStr = c"pg_wal"; +pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = c"global/pg_control"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const XLR_NORMAL_MAX_BLOCK_ID: u32 = 4; @@ -2291,9 +1247,7 @@ pub const XACT_COMPLETION_FORCE_SYNC_COMMIT: u32 = 2147483648; pub const EOH_HEADER_MAGIC: i32 = -1; pub const MAXDIM: u32 = 6; pub const EA_MAGIC: u32 = 689375833; -#[allow(unsafe_code)] -pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql.auto.conf\0") }; +pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = c"postgresql.auto.conf"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -2321,9 +1275,7 @@ pub const GUC_EXPLAIN: u32 = 1048576; pub const GUC_RUNTIME_COMPUTED: u32 = 2097152; pub const GUC_ALLOW_IN_PARALLEL: u32 = 4194304; pub const GUC_UNIT: u32 = 1044480; -#[allow(unsafe_code)] -pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"heap\0") }; +pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = c"heap"; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; pub const TABLE_INSERT_NO_LOGICAL: u32 = 8; @@ -2393,9 +1345,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -#[allow(unsafe_code)] -pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"btree\0") }; +pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = c"btree"; pub const REINDEXOPT_VERBOSE: u32 = 1; pub const REINDEXOPT_REPORT_PROGRESS: u32 = 2; pub const REINDEXOPT_MISSING_OK: u32 = 4; @@ -2835,9 +1785,7 @@ pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; pub const ACL_SET_CHR: u8 = 115u8; pub const ACL_ALTER_SYSTEM_CHR: u8 = 65u8; -#[allow(unsafe_code)] -pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"arwdDxtXUCTcsA\0") }; +pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = c"arwdDxtXUCTcsA"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -3316,12 +2264,8 @@ pub const PIPE_PROTO_IS_LAST: u32 = 1; pub const PIPE_PROTO_DEST_STDERR: u32 = 16; pub const PIPE_PROTO_DEST_CSVLOG: u32 = 32; pub const PIPE_PROTO_DEST_JSONLOG: u32 = 64; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles\0") }; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles.tmp\0") }; +pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = c"current_logfiles"; +pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = c"current_logfiles.tmp"; pub const RBTXN_HAS_CATALOG_CHANGES: u32 = 1; pub const RBTXN_IS_SUBXACT: u32 = 2; pub const RBTXN_IS_SERIALIZED: u32 = 4; @@ -3385,87 +2329,33 @@ pub const FORMAT_TYPE_ALLOW_INVALID: u32 = 2; pub const FORMAT_TYPE_FORCE_QUALIFY: u32 = 4; pub const FORMAT_TYPE_INVALID_AS_NULL: u32 = 8; pub const MAX_TIME_PRECISION: u32 = 6; -#[allow(unsafe_code)] -pub const DAGO: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ago\0") }; -#[allow(unsafe_code)] -pub const DCURRENT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current\0") }; -#[allow(unsafe_code)] -pub const EPOCH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"epoch\0") }; -#[allow(unsafe_code)] -pub const INVALID: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"invalid\0") }; -#[allow(unsafe_code)] -pub const EARLY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-infinity\0") }; -#[allow(unsafe_code)] -pub const LATE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"infinity\0") }; -#[allow(unsafe_code)] -pub const NOW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"now\0") }; -#[allow(unsafe_code)] -pub const TODAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"today\0") }; -#[allow(unsafe_code)] -pub const TOMORROW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tomorrow\0") }; -#[allow(unsafe_code)] -pub const YESTERDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"yesterday\0") }; -#[allow(unsafe_code)] -pub const ZULU: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"zulu\0") }; -#[allow(unsafe_code)] -pub const DMICROSEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"usecond\0") }; -#[allow(unsafe_code)] -pub const DMILLISEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"msecond\0") }; -#[allow(unsafe_code)] -pub const DSECOND: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"second\0") }; -#[allow(unsafe_code)] -pub const DMINUTE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"minute\0") }; -#[allow(unsafe_code)] -pub const DHOUR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hour\0") }; -#[allow(unsafe_code)] -pub const DDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"day\0") }; -#[allow(unsafe_code)] -pub const DWEEK: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"week\0") }; -#[allow(unsafe_code)] -pub const DMONTH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"month\0") }; -#[allow(unsafe_code)] -pub const DQUARTER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"quarter\0") }; -#[allow(unsafe_code)] -pub const DYEAR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"year\0") }; -#[allow(unsafe_code)] -pub const DDECADE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"decade\0") }; -#[allow(unsafe_code)] -pub const DCENTURY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"century\0") }; -#[allow(unsafe_code)] -pub const DMILLENNIUM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"millennium\0") }; -#[allow(unsafe_code)] -pub const DA_D: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ad\0") }; -#[allow(unsafe_code)] -pub const DB_C: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"bc\0") }; -#[allow(unsafe_code)] -pub const DTIMEZONE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"timezone\0") }; +pub const DAGO: &::core::ffi::CStr = c"ago"; +pub const DCURRENT: &::core::ffi::CStr = c"current"; +pub const EPOCH: &::core::ffi::CStr = c"epoch"; +pub const INVALID: &::core::ffi::CStr = c"invalid"; +pub const EARLY: &::core::ffi::CStr = c"-infinity"; +pub const LATE: &::core::ffi::CStr = c"infinity"; +pub const NOW: &::core::ffi::CStr = c"now"; +pub const TODAY: &::core::ffi::CStr = c"today"; +pub const TOMORROW: &::core::ffi::CStr = c"tomorrow"; +pub const YESTERDAY: &::core::ffi::CStr = c"yesterday"; +pub const ZULU: &::core::ffi::CStr = c"zulu"; +pub const DMICROSEC: &::core::ffi::CStr = c"usecond"; +pub const DMILLISEC: &::core::ffi::CStr = c"msecond"; +pub const DSECOND: &::core::ffi::CStr = c"second"; +pub const DMINUTE: &::core::ffi::CStr = c"minute"; +pub const DHOUR: &::core::ffi::CStr = c"hour"; +pub const DDAY: &::core::ffi::CStr = c"day"; +pub const DWEEK: &::core::ffi::CStr = c"week"; +pub const DMONTH: &::core::ffi::CStr = c"month"; +pub const DQUARTER: &::core::ffi::CStr = c"quarter"; +pub const DYEAR: &::core::ffi::CStr = c"year"; +pub const DDECADE: &::core::ffi::CStr = c"decade"; +pub const DCENTURY: &::core::ffi::CStr = c"century"; +pub const DMILLENNIUM: &::core::ffi::CStr = c"millennium"; +pub const DA_D: &::core::ffi::CStr = c"ad"; +pub const DB_C: &::core::ffi::CStr = c"bc"; +pub const DTIMEZONE: &::core::ffi::CStr = c"timezone"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -6831,9 +5721,7 @@ pub const DEFAULT_NUM_DISTINCT: u32 = 200; pub const DEFAULT_UNK_SEL: f64 = 0.005; pub const DEFAULT_NOT_UNK_SEL: f64 = 0.995; pub const SELFLAG_USED_DEFAULT: u32 = 1; -#[allow(unsafe_code)] -pub const RANGE_EMPTY_LITERAL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"empty\0") }; +pub const RANGE_EMPTY_LITERAL: &::core::ffi::CStr = c"empty"; pub const RANGE_EMPTY: u32 = 1; pub const RANGE_LB_INC: u32 = 2; pub const RANGE_UB_INC: u32 = 4; @@ -6854,137 +5742,17 @@ pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; pub const RANGESTRAT_EQ: u32 = 18; pub type pg_int64 = ::core::ffi::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::core::ffi::c_uchar; -pub type __u_short = ::core::ffi::c_ushort; -pub type __u_int = ::core::ffi::c_uint; -pub type __u_long = ::core::ffi::c_ulong; -pub type __int8_t = ::core::ffi::c_schar; -pub type __uint8_t = ::core::ffi::c_uchar; -pub type __int16_t = ::core::ffi::c_short; -pub type __uint16_t = ::core::ffi::c_ushort; -pub type __int32_t = ::core::ffi::c_int; -pub type __uint32_t = ::core::ffi::c_uint; -pub type __int64_t = ::core::ffi::c_long; -pub type __uint64_t = ::core::ffi::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::core::ffi::c_long; -pub type __u_quad_t = ::core::ffi::c_ulong; -pub type __intmax_t = ::core::ffi::c_long; -pub type __uintmax_t = ::core::ffi::c_ulong; -pub type __dev_t = ::core::ffi::c_ulong; pub type __uid_t = ::core::ffi::c_uint; pub type __gid_t = ::core::ffi::c_uint; pub type __ino_t = ::core::ffi::c_ulong; -pub type __ino64_t = ::core::ffi::c_ulong; pub type __mode_t = ::core::ffi::c_uint; -pub type __nlink_t = ::core::ffi::c_ulong; pub type __off_t = ::core::ffi::c_long; pub type __off64_t = ::core::ffi::c_long; pub type __pid_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::core::ffi::c_int; 2usize], -} -pub type __clock_t = ::core::ffi::c_long; -pub type __rlim_t = ::core::ffi::c_ulong; -pub type __rlim64_t = ::core::ffi::c_ulong; -pub type __id_t = ::core::ffi::c_uint; pub type __time_t = ::core::ffi::c_long; -pub type __useconds_t = ::core::ffi::c_uint; -pub type __suseconds_t = ::core::ffi::c_long; -pub type __suseconds64_t = ::core::ffi::c_long; -pub type __daddr_t = ::core::ffi::c_int; -pub type __key_t = ::core::ffi::c_int; -pub type __clockid_t = ::core::ffi::c_int; -pub type __timer_t = *mut ::core::ffi::c_void; -pub type __blksize_t = ::core::ffi::c_long; -pub type __blkcnt_t = ::core::ffi::c_long; -pub type __blkcnt64_t = ::core::ffi::c_long; -pub type __fsblkcnt_t = ::core::ffi::c_ulong; -pub type __fsblkcnt64_t = ::core::ffi::c_ulong; -pub type __fsfilcnt_t = ::core::ffi::c_ulong; -pub type __fsfilcnt64_t = ::core::ffi::c_ulong; -pub type __fsword_t = ::core::ffi::c_long; -pub type __ssize_t = ::core::ffi::c_long; pub type __syscall_slong_t = ::core::ffi::c_long; -pub type __syscall_ulong_t = ::core::ffi::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::core::ffi::c_char; -pub type __intptr_t = ::core::ffi::c_long; pub type __socklen_t = ::core::ffi::c_uint; pub type __sig_atomic_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::core::ffi::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::core::ffi::c_uint, - pub __wchb: [::core::ffi::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -7045,467 +5813,21 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub type wchar_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::core::ffi::c_int, - pub rem: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::core::ffi::c_long, - pub rem: ::core::ffi::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::core::ffi::c_longlong, - pub rem: ::core::ffi::c_longlong, -} -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 = ::core::ffi::c_ulong; -pub type ushort = ::core::ffi::c_ushort; -pub type uint = ::core::ffi::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::core::ffi::c_long; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct __sigset_t { pub __val: [::core::ffi::c_ulong; 16usize], } -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct timespec { pub tv_sec: __time_t, pub tv_nsec: __syscall_slong_t, } -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::core::ffi::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -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: ::core::ffi::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::core::ffi::c_uint, - pub __high: ::core::ffi::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::core::ffi::c_int, - pub __count: ::core::ffi::c_uint, - pub __owner: ::core::ffi::c_int, - pub __nusers: ::core::ffi::c_uint, - pub __kind: ::core::ffi::c_int, - pub __spins: ::core::ffi::c_short, - pub __elision: ::core::ffi::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::core::ffi::c_uint, - pub __writers: ::core::ffi::c_uint, - pub __wrphase_futex: ::core::ffi::c_uint, - pub __writers_futex: ::core::ffi::c_uint, - pub __pad3: ::core::ffi::c_uint, - pub __pad4: ::core::ffi::c_uint, - pub __cur_writer: ::core::ffi::c_int, - pub __shared: ::core::ffi::c_int, - pub __rwelision: ::core::ffi::c_schar, - pub __pad1: [::core::ffi::c_uchar; 7usize], - pub __pad2: ::core::ffi::c_ulong, - pub __flags: ::core::ffi::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::core::ffi::c_uint; 2usize], - pub __g_size: [::core::ffi::c_uint; 2usize], - pub __g1_orig_size: ::core::ffi::c_uint, - pub __wrefs: ::core::ffi::c_uint, - pub __g_signals: [::core::ffi::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::core::ffi::c_uint; -pub type __thrd_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::core::ffi::c_int, -} -pub type pthread_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::core::ffi::c_uint; -pub type pthread_once_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::core::ffi::c_char; 40usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::core::ffi::c_char; 48usize], - pub __align: ::core::ffi::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::core::ffi::c_char; 8usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::core::ffi::c_char; 32usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::core::ffi::c_int, - pub rand_deg: ::core::ffi::c_int, - pub rand_sep: ::core::ffi::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::core::ffi::c_ushort; 3usize], - pub __old_x: [::core::ffi::c_ushort; 3usize], - pub __c: ::core::ffi::c_ushort, - pub __init: ::core::ffi::c_ushort, - pub __a: ::core::ffi::c_ulonglong, -} -pub type __compar_fn_t = ::core::option::Option< - unsafe extern "C" fn( - arg1: *const ::core::ffi::c_void, - arg2: *const ::core::ffi::c_void, - ) -> ::core::ffi::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::core::ffi::c_ushort, - pub __ctype_tolower: *const ::core::ffi::c_int, - pub __ctype_toupper: *const ::core::ffi::c_int, - pub __names: [*const ::core::ffi::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::core::ffi::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -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 = ::core::ffi::c_schar; -pub type int_fast16_t = ::core::ffi::c_long; -pub type int_fast32_t = ::core::ffi::c_long; -pub type int_fast64_t = ::core::ffi::c_long; -pub type uint_fast8_t = ::core::ffi::c_uchar; -pub type uint_fast16_t = ::core::ffi::c_ulong; -pub type uint_fast32_t = ::core::ffi::c_ulong; -pub type uint_fast64_t = ::core::ffi::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::core::ffi::c_char, - pub thousands_sep: *mut ::core::ffi::c_char, - pub grouping: *mut ::core::ffi::c_char, - pub int_curr_symbol: *mut ::core::ffi::c_char, - pub currency_symbol: *mut ::core::ffi::c_char, - pub mon_decimal_point: *mut ::core::ffi::c_char, - pub mon_thousands_sep: *mut ::core::ffi::c_char, - pub mon_grouping: *mut ::core::ffi::c_char, - pub positive_sign: *mut ::core::ffi::c_char, - pub negative_sign: *mut ::core::ffi::c_char, - pub int_frac_digits: ::core::ffi::c_char, - pub frac_digits: ::core::ffi::c_char, - pub p_cs_precedes: ::core::ffi::c_char, - pub p_sep_by_space: ::core::ffi::c_char, - pub n_cs_precedes: ::core::ffi::c_char, - pub n_sep_by_space: ::core::ffi::c_char, - pub p_sign_posn: ::core::ffi::c_char, - pub n_sign_posn: ::core::ffi::c_char, - pub int_p_cs_precedes: ::core::ffi::c_char, - pub int_p_sep_by_space: ::core::ffi::c_char, - pub int_n_cs_precedes: ::core::ffi::c_char, - pub int_n_sep_by_space: ::core::ffi::c_char, - pub int_p_sign_posn: ::core::ffi::c_char, - pub int_n_sign_posn: ::core::ffi::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_funcptr_t = ::core::option::Option; pub type Pointer = *mut ::core::ffi::c_char; pub type int8 = ::core::ffi::c_schar; @@ -7632,32 +5954,7 @@ impl Default for PGAlignedXLogBlock { } } } -pub mod _bindgen_ty_1 { - pub type Type = ::core::ffi::c_uint; - pub const _ISupper: Type = 256; - pub const _ISlower: Type = 512; - pub const _ISalpha: Type = 1024; - pub const _ISdigit: Type = 2048; - pub const _ISxdigit: Type = 4096; - pub const _ISspace: Type = 8192; - pub const _ISprint: Type = 16384; - pub const _ISgraph: Type = 32768; - pub const _ISblank: Type = 1; - pub const _IScntrl: Type = 2; - pub const _ISpunct: Type = 4; - pub const _ISalnum: Type = 8; -} pub type pgsocket = ::core::ffi::c_int; -pub type float_t = f32; -pub type double_t = f64; -pub mod _bindgen_ty_2 { - pub type Type = ::core::ffi::c_uint; - pub const FP_NAN: Type = 0; - pub const FP_INFINITE: Type = 1; - pub const FP_ZERO: Type = 2; - pub const FP_SUBNORMAL: Type = 3; - pub const FP_NORMAL: Type = 4; -} pub type qsort_arg_comparator = ::core::option::Option< unsafe extern "C" fn( a: *const ::core::ffi::c_void, @@ -7674,7 +5971,6 @@ pub struct __jmp_buf_tag { pub __mask_was_saved: ::core::ffi::c_int, pub __saved_mask: __sigset_t, } -pub type jmp_buf = [__jmp_buf_tag; 1usize]; pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -8675,6 +6971,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_off_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_off_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn lp_flags(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } } @@ -8686,6 +7004,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_flags_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 15usize, + 2u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_flags_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 15usize, + 2u8, + val as u64, + ) + } + } + #[inline] pub fn lp_len(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } } @@ -8697,6 +7037,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_len_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 17usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_len_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 17usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( lp_off: ::core::ffi::c_uint, lp_flags: ::core::ffi::c_uint, @@ -8750,32 +7112,19 @@ impl Default for HeapTupleData { } pub type HeapTuple = *mut HeapTupleData; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::core::ffi::c_short, - pub l_whence: ::core::ffi::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, +#[derive(Debug, Copy, Clone)] +pub struct iovec { + pub iov_base: *mut ::core::ffi::c_void, + pub iov_len: usize, } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::core::ffi::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], +impl Default for iovec { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; @@ -9093,36 +7442,6 @@ impl Default for TupleConversionMap { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::core::ffi::c_int, - pub tm_min: ::core::ffi::c_int, - pub tm_hour: ::core::ffi::c_int, - pub tm_mday: ::core::ffi::c_int, - pub tm_mon: ::core::ffi::c_int, - pub tm_year: ::core::ffi::c_int, - pub tm_wday: ::core::ffi::c_int, - pub tm_yday: ::core::ffi::c_int, - pub tm_isdst: ::core::ffi::c_int, - pub tm_gmtoff: ::core::ffi::c_long, - pub tm_zone: *const ::core::ffi::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} pub type instr_time = timespec; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] @@ -15971,18 +14290,6 @@ impl Default for dirent { } } } -pub mod _bindgen_ty_3 { - pub type Type = ::core::ffi::c_uint; - pub const DT_UNKNOWN: Type = 0; - pub const DT_FIFO: Type = 1; - pub const DT_CHR: Type = 2; - pub const DT_DIR: Type = 4; - pub const DT_BLK: Type = 6; - pub const DT_REG: Type = 8; - pub const DT_LNK: Type = 10; - pub const DT_SOCK: Type = 12; - pub const DT_WHT: Type = 14; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { @@ -18697,586 +17004,14 @@ pub mod TypeFuncClass { pub const TYPEFUNC_OTHER: Type = 4; } pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::core::ffi::c_int, - pub sival_ptr: *mut ::core::ffi::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::core::ffi::c_int, - pub si_errno: ::core::ffi::c_int, - pub si_code: ::core::ffi::c_int, - pub __pad0: ::core::ffi::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::core::ffi::c_int, - pub si_overrun: ::core::ffi::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::core::ffi::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::core::ffi::c_void, - pub si_addr_lsb: ::core::ffi::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::core::ffi::c_void, - pub _upper: *mut ::core::ffi::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::core::ffi::c_long, - pub si_fd: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::core::ffi::c_void, - pub _syscall: ::core::ffi::c_int, - pub _arch: ::core::ffi::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_4 { - pub type Type = ::core::ffi::c_int; - pub const SI_ASYNCNL: Type = -60; - pub const SI_DETHREAD: Type = -7; - pub const SI_TKILL: Type = -6; - pub const SI_SIGIO: Type = -5; - pub const SI_ASYNCIO: Type = -4; - pub const SI_MESGQ: Type = -3; - pub const SI_TIMER: Type = -2; - pub const SI_QUEUE: Type = -1; - pub const SI_USER: Type = 0; - pub const SI_KERNEL: Type = 128; -} -pub mod _bindgen_ty_5 { - pub type Type = ::core::ffi::c_uint; - pub const ILL_ILLOPC: Type = 1; - pub const ILL_ILLOPN: Type = 2; - pub const ILL_ILLADR: Type = 3; - pub const ILL_ILLTRP: Type = 4; - pub const ILL_PRVOPC: Type = 5; - pub const ILL_PRVREG: Type = 6; - pub const ILL_COPROC: Type = 7; - pub const ILL_BADSTK: Type = 8; - pub const ILL_BADIADDR: Type = 9; -} -pub mod _bindgen_ty_6 { - pub type Type = ::core::ffi::c_uint; - pub const FPE_INTDIV: Type = 1; - pub const FPE_INTOVF: Type = 2; - pub const FPE_FLTDIV: Type = 3; - pub const FPE_FLTOVF: Type = 4; - pub const FPE_FLTUND: Type = 5; - pub const FPE_FLTRES: Type = 6; - pub const FPE_FLTINV: Type = 7; - pub const FPE_FLTSUB: Type = 8; - pub const FPE_FLTUNK: Type = 14; - pub const FPE_CONDTRAP: Type = 15; -} -pub mod _bindgen_ty_7 { - pub type Type = ::core::ffi::c_uint; - pub const SEGV_MAPERR: Type = 1; - pub const SEGV_ACCERR: Type = 2; - pub const SEGV_BNDERR: Type = 3; - pub const SEGV_PKUERR: Type = 4; - pub const SEGV_ACCADI: Type = 5; - pub const SEGV_ADIDERR: Type = 6; - pub const SEGV_ADIPERR: Type = 7; - pub const SEGV_MTEAERR: Type = 8; - pub const SEGV_MTESERR: Type = 9; -} -pub mod _bindgen_ty_8 { - pub type Type = ::core::ffi::c_uint; - pub const BUS_ADRALN: Type = 1; - pub const BUS_ADRERR: Type = 2; - pub const BUS_OBJERR: Type = 3; - pub const BUS_MCEERR_AR: Type = 4; - pub const BUS_MCEERR_AO: Type = 5; -} -pub mod _bindgen_ty_9 { - pub type Type = ::core::ffi::c_uint; - pub const CLD_EXITED: Type = 1; - pub const CLD_KILLED: Type = 2; - pub const CLD_DUMPED: Type = 3; - pub const CLD_TRAPPED: Type = 4; - pub const CLD_STOPPED: Type = 5; - pub const CLD_CONTINUED: Type = 6; -} -pub mod _bindgen_ty_10 { - pub type Type = ::core::ffi::c_uint; - pub const POLL_IN: Type = 1; - pub const POLL_OUT: Type = 2; - pub const POLL_MSG: Type = 3; - pub const POLL_ERR: Type = 4; - pub const POLL_PRI: Type = 5; - pub const POLL_HUP: Type = 6; -} -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::core::ffi::c_int, - pub sigev_notify: ::core::ffi::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::core::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub mod _bindgen_ty_11 { +pub mod _bindgen_ty_13 { pub type Type = ::core::ffi::c_uint; pub const SIGEV_SIGNAL: Type = 0; pub const SIGEV_NONE: Type = 1; pub const SIGEV_THREAD: Type = 2; pub const SIGEV_THREAD_ID: Type = 4; } -pub type __sighandler_t = ::core::option::Option; -pub type sig_t = __sighandler_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::core::ffi::c_int, - pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::core::option::Option< - unsafe extern "C" fn( - arg1: ::core::ffi::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::core::ffi::c_void, - ), - >, -} -impl Default for sigaction__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigaction { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::core::ffi::c_ushort, - pub gs: ::core::ffi::c_ushort, - pub fs: ::core::ffi::c_ushort, - pub __pad0: ::core::ffi::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_flags: ::core::ffi::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type greg_t = ::core::ffi::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::core::ffi::c_ulonglong; 8usize], -} -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::core::ffi::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::core::ffi::c_ulonglong; 4usize], -} -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_12 { - pub type Type = ::core::ffi::c_uint; - pub const SS_ONSTACK: Type = 1; - pub const SS_DISABLE: Type = 2; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_onstack: ::core::ffi::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} +pub type socklen_t = __socklen_t; pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -19380,42 +17115,8 @@ pub mod ProgressCommandType { pub const PROGRESS_COMMAND_BASEBACKUP: Type = 5; pub const PROGRESS_COMMAND_COPY: Type = 6; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::core::ffi::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type socklen_t = __socklen_t; -pub mod __socket_type { - pub type Type = ::core::ffi::c_uint; - pub const SOCK_STREAM: Type = 1; - pub const SOCK_DGRAM: Type = 2; - pub const SOCK_RAW: Type = 3; - pub const SOCK_RDM: Type = 4; - pub const SOCK_SEQPACKET: Type = 5; - pub const SOCK_DCCP: Type = 6; - pub const SOCK_PACKET: Type = 10; - pub const SOCK_CLOEXEC: Type = 524288; - pub const SOCK_NONBLOCK: Type = 2048; -} pub type sa_family_t = ::core::ffi::c_ushort; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::core::ffi::c_char; 14usize], -} -#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr_storage { pub ss_family: sa_family_t, @@ -19431,491 +17132,6 @@ impl Default for sockaddr_storage { } } } -pub mod _bindgen_ty_13 { - pub type Type = ::core::ffi::c_uint; - pub const MSG_OOB: Type = 1; - pub const MSG_PEEK: Type = 2; - pub const MSG_DONTROUTE: Type = 4; - pub const MSG_CTRUNC: Type = 8; - pub const MSG_PROXY: Type = 16; - pub const MSG_TRUNC: Type = 32; - pub const MSG_DONTWAIT: Type = 64; - pub const MSG_EOR: Type = 128; - pub const MSG_WAITALL: Type = 256; - pub const MSG_FIN: Type = 512; - pub const MSG_SYN: Type = 1024; - pub const MSG_CONFIRM: Type = 2048; - pub const MSG_RST: Type = 4096; - pub const MSG_ERRQUEUE: Type = 8192; - pub const MSG_NOSIGNAL: Type = 16384; - pub const MSG_MORE: Type = 32768; - pub const MSG_WAITFORONE: Type = 65536; - pub const MSG_BATCH: Type = 262144; - pub const MSG_ZEROCOPY: Type = 67108864; - pub const MSG_FASTOPEN: Type = 536870912; - pub const MSG_CMSG_CLOEXEC: Type = 1073741824; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::core::ffi::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::core::ffi::c_void, - pub msg_controllen: usize, - pub msg_flags: ::core::ffi::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::core::ffi::c_int, - pub cmsg_type: ::core::ffi::c_int, - pub __cmsg_data: __IncompleteArrayField<::core::ffi::c_uchar>, -} -pub mod _bindgen_ty_14 { - pub type Type = ::core::ffi::c_uint; - pub const SCM_RIGHTS: Type = 1; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::core::ffi::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::core::option::Option; -pub type __kernel_key_t = ::core::ffi::c_int; -pub type __kernel_mqd_t = ::core::ffi::c_int; -pub type __kernel_old_uid_t = ::core::ffi::c_ushort; -pub type __kernel_old_gid_t = ::core::ffi::c_ushort; -pub type __kernel_old_dev_t = ::core::ffi::c_ulong; -pub type __kernel_long_t = ::core::ffi::c_long; -pub type __kernel_ulong_t = ::core::ffi::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::core::ffi::c_uint; -pub type __kernel_pid_t = ::core::ffi::c_int; -pub type __kernel_ipc_pid_t = ::core::ffi::c_int; -pub type __kernel_uid_t = ::core::ffi::c_uint; -pub type __kernel_gid_t = ::core::ffi::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::core::ffi::c_int; -pub type __kernel_uid32_t = ::core::ffi::c_uint; -pub type __kernel_gid32_t = ::core::ffi::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::core::ffi::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::core::ffi::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::core::ffi::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::core::ffi::c_int; -pub type __kernel_clockid_t = ::core::ffi::c_int; -pub type __kernel_caddr_t = *mut ::core::ffi::c_char; -pub type __kernel_uid16_t = ::core::ffi::c_ushort; -pub type __kernel_gid16_t = ::core::ffi::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::core::ffi::c_int, - pub l_linger: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::core::ffi::c_ushort, - pub sa_data: [::core::ffi::c_uchar; 14usize], -} -pub mod _bindgen_ty_15 { - pub type Type = ::core::ffi::c_uint; - pub const SHUT_RD: Type = 0; - pub const SHUT_WR: Type = 1; - pub const SHUT_RDWR: Type = 2; -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::core::ffi::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::core::ffi::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub mod _bindgen_ty_16 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_IP: Type = 0; - pub const IPPROTO_ICMP: Type = 1; - pub const IPPROTO_IGMP: Type = 2; - pub const IPPROTO_IPIP: Type = 4; - pub const IPPROTO_TCP: Type = 6; - pub const IPPROTO_EGP: Type = 8; - pub const IPPROTO_PUP: Type = 12; - pub const IPPROTO_UDP: Type = 17; - pub const IPPROTO_IDP: Type = 22; - pub const IPPROTO_TP: Type = 29; - pub const IPPROTO_DCCP: Type = 33; - pub const IPPROTO_IPV6: Type = 41; - pub const IPPROTO_RSVP: Type = 46; - pub const IPPROTO_GRE: Type = 47; - pub const IPPROTO_ESP: Type = 50; - pub const IPPROTO_AH: Type = 51; - pub const IPPROTO_MTP: Type = 92; - pub const IPPROTO_BEETPH: Type = 94; - pub const IPPROTO_ENCAP: Type = 98; - pub const IPPROTO_PIM: Type = 103; - pub const IPPROTO_COMP: Type = 108; - pub const IPPROTO_SCTP: Type = 132; - pub const IPPROTO_UDPLITE: Type = 136; - pub const IPPROTO_MPLS: Type = 137; - pub const IPPROTO_ETHERNET: Type = 143; - pub const IPPROTO_RAW: Type = 255; - pub const IPPROTO_MPTCP: Type = 262; - pub const IPPROTO_MAX: Type = 263; -} -pub mod _bindgen_ty_17 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_HOPOPTS: Type = 0; - pub const IPPROTO_ROUTING: Type = 43; - pub const IPPROTO_FRAGMENT: Type = 44; - pub const IPPROTO_ICMPV6: Type = 58; - pub const IPPROTO_NONE: Type = 59; - pub const IPPROTO_DSTOPTS: Type = 60; - pub const IPPROTO_MH: Type = 135; -} -pub type in_port_t = u16; -pub mod _bindgen_ty_18 { - pub type Type = ::core::ffi::c_uint; - pub const IPPORT_ECHO: Type = 7; - pub const IPPORT_DISCARD: Type = 9; - pub const IPPORT_SYSTAT: Type = 11; - pub const IPPORT_DAYTIME: Type = 13; - pub const IPPORT_NETSTAT: Type = 15; - pub const IPPORT_FTP: Type = 21; - pub const IPPORT_TELNET: Type = 23; - pub const IPPORT_SMTP: Type = 25; - pub const IPPORT_TIMESERVER: Type = 37; - pub const IPPORT_NAMESERVER: Type = 42; - pub const IPPORT_WHOIS: Type = 43; - pub const IPPORT_MTP: Type = 57; - pub const IPPORT_TFTP: Type = 69; - pub const IPPORT_RJE: Type = 77; - pub const IPPORT_FINGER: Type = 79; - pub const IPPORT_TTYLINK: Type = 87; - pub const IPPORT_SUPDUP: Type = 95; - pub const IPPORT_EXECSERVER: Type = 512; - pub const IPPORT_LOGINSERVER: Type = 513; - pub const IPPORT_CMDSERVER: Type = 514; - pub const IPPORT_EFSSERVER: Type = 520; - pub const IPPORT_BIFFUDP: Type = 512; - pub const IPPORT_WHOSERVER: Type = 513; - pub const IPPORT_ROUTESERVER: Type = 520; - pub const IPPORT_RESERVED: Type = 1024; - pub const IPPORT_USERRESERVED: Type = 5000; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::core::ffi::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::core::ffi::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::core::ffi::c_char, - pub r_aliases: *mut *mut ::core::ffi::c_char, - pub r_number: ::core::ffi::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::core::ffi::c_char, - pub n_aliases: *mut *mut ::core::ffi::c_char, - pub n_addrtype: ::core::ffi::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::core::ffi::c_char, - pub h_aliases: *mut *mut ::core::ffi::c_char, - pub h_addrtype: ::core::ffi::c_int, - pub h_length: ::core::ffi::c_int, - pub h_addr_list: *mut *mut ::core::ffi::c_char, -} -impl Default for hostent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::core::ffi::c_char, - pub s_aliases: *mut *mut ::core::ffi::c_char, - pub s_port: ::core::ffi::c_int, - pub s_proto: *mut ::core::ffi::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::core::ffi::c_char, - pub p_aliases: *mut *mut ::core::ffi::c_char, - pub p_proto: ::core::ffi::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::core::ffi::c_int, - pub ai_family: ::core::ffi::c_int, - pub ai_socktype: ::core::ffi::c_int, - pub ai_protocol: ::core::ffi::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::core::ffi::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::core::ffi::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct SockAddr { @@ -26199,6 +23415,7 @@ pub struct ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { pub fcinfo_data: FunctionCallInfo, pub fn_addr: PGFunction, pub nargs: ::core::ffi::c_int, + pub make_ro: bool, } impl Default for ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { fn default() -> Self { @@ -29786,7 +27003,7 @@ pub mod PLpgSQL_stmt_type { pub const PLPGSQL_STMT_COMMIT: Type = 25; pub const PLPGSQL_STMT_ROLLBACK: Type = 26; } -pub mod _bindgen_ty_19 { +pub mod _bindgen_ty_25 { pub type Type = ::core::ffi::c_uint; pub const PLPGSQL_RC_OK: Type = 0; pub const PLPGSQL_RC_EXIT: Type = 1; @@ -32244,6 +29461,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn haspos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_haspos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u32) } } @@ -32255,6 +29494,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 11u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 11u8, + val as u64, + ) + } + } + #[inline] pub fn pos(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -32266,6 +29527,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn pos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_pos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( haspos: uint32, len: uint32, @@ -32332,6 +29615,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn length_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 12u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_length_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 12u8, + val as u64, + ) + } + } + #[inline] pub fn distance(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -32343,6 +29648,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn distance_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_distance_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1(length: uint32, distance: uint32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 12u8, { @@ -32435,6 +29762,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn selected_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_selected_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn in_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } @@ -32446,6 +29795,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn in__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_in_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn replace(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } @@ -32457,6 +29828,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn replace_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 2usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_replace_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 2usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn repeated(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } @@ -32468,6 +29861,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn repeated_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 3usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_repeated_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 3usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn skip(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } @@ -32479,6 +29894,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn skip_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 4usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_skip_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 4usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn unused(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) } } @@ -32490,6 +29927,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn unused_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 5usize, + 3u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_unused_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 5usize, + 3u8, + val as u64, + ) + } + } + #[inline] pub fn type_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } } @@ -32501,6 +29960,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn type__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 8usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_type_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 8usize, + 8u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } } @@ -32512,6 +29993,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 16usize, + 16u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 16usize, + 16u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( selected: uint32, in_: uint32, @@ -33425,11 +30928,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -33499,48 +30997,7 @@ pub struct SnapBuild { pub _address: u8, } #[pgrx_macros::pg_guard] -extern "C" { - #[link_name = "\u{1}__isoc99_fscanf"] - pub fn fscanf1( - __stream: *mut FILE, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_scanf"] - pub fn scanf1(__format: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_sscanf"] - pub fn sscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vfscanf"] - pub fn vfscanf1( - __s: *mut FILE, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vscanf"] - pub fn vscanf1( - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vsscanf"] - pub fn vsscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - pub fn alloca(__size: ::core::ffi::c_ulong) -> *mut ::core::ffi::c_void; - pub fn atexit(__func: ::core::option::Option) -> ::core::ffi::c_int; - pub fn at_quick_exit( - __func: ::core::option::Option, - ) -> ::core::ffi::c_int; - pub fn __memcmpeq( - __s1: *const ::core::ffi::c_void, - __s2: *const ::core::ffi::c_void, - __n: usize, - ) -> ::core::ffi::c_int; +unsafe extern "C" { pub fn ExceptionalCondition( conditionName: *const ::core::ffi::c_char, errorType: *const ::core::ffi::c_char, @@ -33561,6 +31018,7 @@ extern "C" { tail: *const ::core::ffi::c_char, ); pub fn canonicalize_path(path: *mut ::core::ffi::c_char); + pub fn canonicalize_path_enc(path: *mut ::core::ffi::c_char, encoding: ::core::ffi::c_int); pub fn make_native_path(path: *mut ::core::ffi::c_char); pub fn cleanup_path(path: *mut ::core::ffi::c_char); pub fn path_contains_parent_reference(path: *const ::core::ffi::c_char) -> bool; @@ -33653,22 +31111,42 @@ extern "C" { pub fn pg_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_toupper(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; + pub fn pg_vsnprintf( + str_: *mut ::core::ffi::c_char, + count: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_snprintf( str_: *mut ::core::ffi::c_char, count: usize, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vsprintf( + str_: *mut ::core::ffi::c_char, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_sprintf( str_: *mut ::core::ffi::c_char, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vfprintf( + stream: *mut FILE, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_fprintf( stream: *mut FILE, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vprintf( + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_printf(fmt: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; pub fn pg_strfromd( str_: *mut ::core::ffi::c_char, @@ -33691,210 +31169,6 @@ extern "C" { uid: *mut uid_t, gid: *mut gid_t, ) -> ::core::ffi::c_int; - pub fn __acos(__x: f64) -> f64; - pub fn __asin(__x: f64) -> f64; - pub fn __atan(__x: f64) -> f64; - pub fn __atan2(__y: f64, __x: f64) -> f64; - pub fn __cos(__x: f64) -> f64; - pub fn __sin(__x: f64) -> f64; - pub fn __tan(__x: f64) -> f64; - pub fn __cosh(__x: f64) -> f64; - pub fn __sinh(__x: f64) -> f64; - pub fn __tanh(__x: f64) -> f64; - pub fn __acosh(__x: f64) -> f64; - pub fn __asinh(__x: f64) -> f64; - pub fn __atanh(__x: f64) -> f64; - pub fn __exp(__x: f64) -> f64; - pub fn __frexp(__x: f64, __exponent: *mut ::core::ffi::c_int) -> f64; - pub fn __ldexp(__x: f64, __exponent: ::core::ffi::c_int) -> f64; - pub fn __log(__x: f64) -> f64; - pub fn __log10(__x: f64) -> f64; - pub fn __modf(__x: f64, __iptr: *mut f64) -> f64; - pub fn __expm1(__x: f64) -> f64; - pub fn __log1p(__x: f64) -> f64; - pub fn __logb(__x: f64) -> f64; - pub fn __exp2(__x: f64) -> f64; - pub fn __log2(__x: f64) -> f64; - pub fn __pow(__x: f64, __y: f64) -> f64; - pub fn __sqrt(__x: f64) -> f64; - pub fn __hypot(__x: f64, __y: f64) -> f64; - pub fn __cbrt(__x: f64) -> f64; - pub fn __ceil(__x: f64) -> f64; - pub fn __fabs(__x: f64) -> f64; - pub fn __floor(__x: f64) -> f64; - pub fn __fmod(__x: f64, __y: f64) -> f64; - pub fn __drem(__x: f64, __y: f64) -> f64; - pub fn __significand(__x: f64) -> f64; - pub fn __copysign(__x: f64, __y: f64) -> f64; - pub fn __nan(__tagb: *const ::core::ffi::c_char) -> f64; - pub fn __j0(arg1: f64) -> f64; - pub fn __j1(arg1: f64) -> f64; - pub fn __jn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __y0(arg1: f64) -> f64; - pub fn __y1(arg1: f64) -> f64; - pub fn __yn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __erf(arg1: f64) -> f64; - pub fn __erfc(arg1: f64) -> f64; - pub fn __lgamma(arg1: f64) -> f64; - pub fn __tgamma(arg1: f64) -> f64; - pub fn __gamma(arg1: f64) -> f64; - pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::core::ffi::c_int) -> f64; - pub fn __rint(__x: f64) -> f64; - pub fn __nextafter(__x: f64, __y: f64) -> f64; - pub fn __nexttoward(__x: f64, __y: u128) -> f64; - pub fn __remainder(__x: f64, __y: f64) -> f64; - pub fn __scalbn(__x: f64, __n: ::core::ffi::c_int) -> f64; - pub fn __ilogb(__x: f64) -> ::core::ffi::c_int; - pub fn __scalbln(__x: f64, __n: ::core::ffi::c_long) -> f64; - pub fn __nearbyint(__x: f64) -> f64; - pub fn __round(__x: f64) -> f64; - pub fn __trunc(__x: f64) -> f64; - pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::core::ffi::c_int) -> f64; - pub fn __lrint(__x: f64) -> ::core::ffi::c_long; - pub fn __llrint(__x: f64) -> ::core::ffi::c_longlong; - pub fn __lround(__x: f64) -> ::core::ffi::c_long; - pub fn __llround(__x: f64) -> ::core::ffi::c_longlong; - pub fn __fdim(__x: f64, __y: f64) -> f64; - pub fn __fmax(__x: f64, __y: f64) -> f64; - pub fn __fmin(__x: f64, __y: f64) -> f64; - pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64; - pub fn __scalb(__x: f64, __n: f64) -> f64; - pub fn __acosf(__x: f32) -> f32; - pub fn __asinf(__x: f32) -> f32; - pub fn __atanf(__x: f32) -> f32; - pub fn __atan2f(__y: f32, __x: f32) -> f32; - pub fn __cosf(__x: f32) -> f32; - pub fn __sinf(__x: f32) -> f32; - pub fn __tanf(__x: f32) -> f32; - pub fn __coshf(__x: f32) -> f32; - pub fn __sinhf(__x: f32) -> f32; - pub fn __tanhf(__x: f32) -> f32; - pub fn __acoshf(__x: f32) -> f32; - pub fn __asinhf(__x: f32) -> f32; - pub fn __atanhf(__x: f32) -> f32; - pub fn __expf(__x: f32) -> f32; - pub fn __frexpf(__x: f32, __exponent: *mut ::core::ffi::c_int) -> f32; - pub fn __ldexpf(__x: f32, __exponent: ::core::ffi::c_int) -> f32; - pub fn __logf(__x: f32) -> f32; - pub fn __log10f(__x: f32) -> f32; - pub fn __modff(__x: f32, __iptr: *mut f32) -> f32; - pub fn __expm1f(__x: f32) -> f32; - pub fn __log1pf(__x: f32) -> f32; - pub fn __logbf(__x: f32) -> f32; - pub fn __exp2f(__x: f32) -> f32; - pub fn __log2f(__x: f32) -> f32; - pub fn __powf(__x: f32, __y: f32) -> f32; - pub fn __sqrtf(__x: f32) -> f32; - pub fn __hypotf(__x: f32, __y: f32) -> f32; - pub fn __cbrtf(__x: f32) -> f32; - pub fn __ceilf(__x: f32) -> f32; - pub fn __fabsf(__x: f32) -> f32; - pub fn __floorf(__x: f32) -> f32; - pub fn __fmodf(__x: f32, __y: f32) -> f32; - pub fn __dremf(__x: f32, __y: f32) -> f32; - pub fn __significandf(__x: f32) -> f32; - pub fn __copysignf(__x: f32, __y: f32) -> f32; - pub fn __nanf(__tagb: *const ::core::ffi::c_char) -> f32; - pub fn __j0f(arg1: f32) -> f32; - pub fn __j1f(arg1: f32) -> f32; - pub fn __jnf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __y0f(arg1: f32) -> f32; - pub fn __y1f(arg1: f32) -> f32; - pub fn __ynf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __erff(arg1: f32) -> f32; - pub fn __erfcf(arg1: f32) -> f32; - pub fn __lgammaf(arg1: f32) -> f32; - pub fn __tgammaf(arg1: f32) -> f32; - pub fn __gammaf(arg1: f32) -> f32; - pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::core::ffi::c_int) -> f32; - pub fn __rintf(__x: f32) -> f32; - pub fn __nextafterf(__x: f32, __y: f32) -> f32; - pub fn __nexttowardf(__x: f32, __y: u128) -> f32; - pub fn __remainderf(__x: f32, __y: f32) -> f32; - pub fn __scalbnf(__x: f32, __n: ::core::ffi::c_int) -> f32; - pub fn __ilogbf(__x: f32) -> ::core::ffi::c_int; - pub fn __scalblnf(__x: f32, __n: ::core::ffi::c_long) -> f32; - pub fn __nearbyintf(__x: f32) -> f32; - pub fn __roundf(__x: f32) -> f32; - pub fn __truncf(__x: f32) -> f32; - pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::core::ffi::c_int) -> f32; - pub fn __lrintf(__x: f32) -> ::core::ffi::c_long; - pub fn __llrintf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __lroundf(__x: f32) -> ::core::ffi::c_long; - pub fn __llroundf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __fdimf(__x: f32, __y: f32) -> f32; - pub fn __fmaxf(__x: f32, __y: f32) -> f32; - pub fn __fminf(__x: f32, __y: f32) -> f32; - pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32; - pub fn __scalbf(__x: f32, __n: f32) -> f32; - pub fn __acosl(__x: u128) -> u128; - pub fn __asinl(__x: u128) -> u128; - pub fn __atanl(__x: u128) -> u128; - pub fn __atan2l(__y: u128, __x: u128) -> u128; - pub fn __cosl(__x: u128) -> u128; - pub fn __sinl(__x: u128) -> u128; - pub fn __tanl(__x: u128) -> u128; - pub fn __coshl(__x: u128) -> u128; - pub fn __sinhl(__x: u128) -> u128; - pub fn __tanhl(__x: u128) -> u128; - pub fn __acoshl(__x: u128) -> u128; - pub fn __asinhl(__x: u128) -> u128; - pub fn __atanhl(__x: u128) -> u128; - pub fn __expl(__x: u128) -> u128; - pub fn __frexpl(__x: u128, __exponent: *mut ::core::ffi::c_int) -> u128; - pub fn __ldexpl(__x: u128, __exponent: ::core::ffi::c_int) -> u128; - pub fn __logl(__x: u128) -> u128; - pub fn __log10l(__x: u128) -> u128; - pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128; - pub fn __expm1l(__x: u128) -> u128; - pub fn __log1pl(__x: u128) -> u128; - pub fn __logbl(__x: u128) -> u128; - pub fn __exp2l(__x: u128) -> u128; - pub fn __log2l(__x: u128) -> u128; - pub fn __powl(__x: u128, __y: u128) -> u128; - pub fn __sqrtl(__x: u128) -> u128; - pub fn __hypotl(__x: u128, __y: u128) -> u128; - pub fn __cbrtl(__x: u128) -> u128; - pub fn __ceill(__x: u128) -> u128; - pub fn __fabsl(__x: u128) -> u128; - pub fn __floorl(__x: u128) -> u128; - pub fn __fmodl(__x: u128, __y: u128) -> u128; - pub fn __dreml(__x: u128, __y: u128) -> u128; - pub fn __significandl(__x: u128) -> u128; - pub fn __copysignl(__x: u128, __y: u128) -> u128; - pub fn __nanl(__tagb: *const ::core::ffi::c_char) -> u128; - pub fn __j0l(arg1: u128) -> u128; - pub fn __j1l(arg1: u128) -> u128; - pub fn __jnl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __y0l(arg1: u128) -> u128; - pub fn __y1l(arg1: u128) -> u128; - pub fn __ynl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __erfl(arg1: u128) -> u128; - pub fn __erfcl(arg1: u128) -> u128; - pub fn __lgammal(arg1: u128) -> u128; - pub fn __tgammal(arg1: u128) -> u128; - pub fn __gammal(arg1: u128) -> u128; - pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::core::ffi::c_int) -> u128; - pub fn __rintl(__x: u128) -> u128; - pub fn __nextafterl(__x: u128, __y: u128) -> u128; - pub fn __nexttowardl(__x: u128, __y: u128) -> u128; - pub fn __remainderl(__x: u128, __y: u128) -> u128; - pub fn __scalbnl(__x: u128, __n: ::core::ffi::c_int) -> u128; - pub fn __ilogbl(__x: u128) -> ::core::ffi::c_int; - pub fn __scalblnl(__x: u128, __n: ::core::ffi::c_long) -> u128; - pub fn __nearbyintl(__x: u128) -> u128; - pub fn __roundl(__x: u128) -> u128; - pub fn __truncl(__x: u128) -> u128; - pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::core::ffi::c_int) -> u128; - pub fn __lrintl(__x: u128) -> ::core::ffi::c_long; - pub fn __llrintl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __lroundl(__x: u128) -> ::core::ffi::c_long; - pub fn __llroundl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __fdiml(__x: u128, __y: u128) -> u128; - pub fn __fmaxl(__x: u128, __y: u128) -> u128; - pub fn __fminl(__x: u128, __y: u128) -> u128; - pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128; - pub fn __scalbl(__x: u128, __n: u128) -> u128; pub fn strlcat( dst: *mut ::core::ffi::c_char, src: *const ::core::ffi::c_char, @@ -34104,6 +31378,12 @@ extern "C" { pub fn pnstrdup(in_: *const ::core::ffi::c_char, len: Size) -> *mut ::core::ffi::c_char; pub fn pchomp(in_: *const ::core::ffi::c_char) -> *mut ::core::ffi::c_char; pub fn psprintf(fmt: *const ::core::ffi::c_char, ...) -> *mut ::core::ffi::c_char; + pub fn pvsnprintf( + buf: *mut ::core::ffi::c_char, + len: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> usize; pub static mut no_such_variable: ::core::ffi::c_int; pub fn outNode(str_: *mut StringInfoData, obj: *const ::core::ffi::c_void); pub fn outToken(str_: *mut StringInfoData, s: *const ::core::ffi::c_char); @@ -34894,6 +32174,11 @@ extern "C" { pub fn initStringInfo(str_: StringInfo); pub fn resetStringInfo(str_: StringInfo); pub fn appendStringInfo(str_: StringInfo, fmt: *const ::core::ffi::c_char, ...); + pub fn appendStringInfoVA( + str_: StringInfo, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn appendStringInfoString(str_: StringInfo, s: *const ::core::ffi::c_char); pub fn appendStringInfoChar(str_: StringInfo, ch: ::core::ffi::c_char); pub fn appendStringInfoSpaces(str_: StringInfo, count: ::core::ffi::c_int); @@ -36448,10 +33733,6 @@ extern "C" { val: *const int64, ); pub fn pgstat_progress_end_command(); - pub fn bindresvport6( - __sockfd: ::core::ffi::c_int, - __sock_in: *mut sockaddr_in6, - ) -> ::core::ffi::c_int; pub static mut Db_user_namespace: bool; pub static mut pgstat_track_activities: bool; pub static mut pgstat_track_activity_query_size: ::core::ffi::c_int; @@ -37105,6 +34386,12 @@ extern "C" { oidcol: AttrNumber, objectId: Oid, ) -> HeapTuple; + pub fn get_catalog_object_by_oid_extended( + catalog: Relation, + oidcol: AttrNumber, + objectId: Oid, + locktup: bool, + ) -> HeapTuple; pub fn getObjectDescription( object: *const ObjectAddress, missing_ok: bool, @@ -37223,6 +34510,13 @@ extern "C" { nforks: ::core::ffi::c_int, nblocks: *mut BlockNumber, ); + pub fn smgrtruncate2( + reln: SMgrRelation, + forknum: *mut ForkNumber::Type, + nforks: ::core::ffi::c_int, + old_nblocks: *mut BlockNumber, + nblocks: *mut BlockNumber, + ); pub fn smgrimmedsync(reln: SMgrRelation, forknum: ForkNumber::Type); pub fn AtEOXact_SMgr(); pub fn ProcessBarrierSmgrRelease() -> bool; @@ -39059,6 +36353,25 @@ extern "C" { currTLI: TimeLineID, ); pub fn WALReadRaiseError(errinfo: *mut WALReadError); + pub fn IsSystemRelation(relation: Relation) -> bool; + pub fn IsToastRelation(relation: Relation) -> bool; + pub fn IsCatalogRelation(relation: Relation) -> bool; + pub fn IsInplaceUpdateRelation(relation: Relation) -> bool; + pub fn IsSystemClass(relid: Oid, reltuple: Form_pg_class) -> bool; + pub fn IsToastClass(reltuple: Form_pg_class) -> bool; + pub fn IsCatalogRelationOid(relid: Oid) -> bool; + pub fn IsInplaceUpdateOid(relid: Oid) -> bool; + pub fn IsCatalogNamespace(namespaceId: Oid) -> bool; + pub fn IsToastNamespace(namespaceId: Oid) -> bool; + pub fn IsReservedName(name: *const ::core::ffi::c_char) -> bool; + pub fn IsSharedRelation(relationId: Oid) -> bool; + pub fn IsPinnedObject(classId: Oid, objectId: Oid) -> bool; + pub fn GetNewOidWithIndex(relation: Relation, indexId: Oid, oidcolumn: AttrNumber) -> Oid; + pub fn GetNewRelFileNode( + reltablespace: Oid, + pg_class: Relation, + relpersistence: ::core::ffi::c_char, + ) -> Oid; pub fn AcquireDeletionLock(object: *const ObjectAddress, flags: ::core::ffi::c_int); pub fn ReleaseDeletionLock(object: *const ObjectAddress); pub fn performDeletion( @@ -41538,6 +38851,7 @@ extern "C" { pub fn pg_char_to_encoding(name: *const ::core::ffi::c_char) -> ::core::ffi::c_int; pub fn pg_encoding_to_char(encoding: ::core::ffi::c_int) -> *const ::core::ffi::c_char; pub fn pg_valid_server_encoding_id(encoding: ::core::ffi::c_int) -> ::core::ffi::c_int; + pub fn pg_encoding_set_invalid(encoding: ::core::ffi::c_int, dst: *mut ::core::ffi::c_char); pub fn pg_encoding_mblen( encoding: ::core::ffi::c_int, mbstr: *const ::core::ffi::c_char, @@ -44084,6 +41398,13 @@ extern "C" { targetTypmod: int32, constructName: *const ::core::ffi::c_char, ) -> *mut Node; + pub fn coerce_null_to_domain( + typid: Oid, + typmod: int32, + collation: Oid, + typlen: ::core::ffi::c_int, + typbyval: bool, + ) -> *mut Node; pub fn parser_coercion_errposition( pstate: *mut ParseState, coerce_location: ::core::ffi::c_int, @@ -48899,6 +46220,7 @@ extern "C" { ) -> *mut CatCList; pub fn ReleaseCatCacheList(list: *mut CatCList); pub fn ResetCatalogCaches(); + pub fn ResetCatalogCachesExt(debug_discard: bool); pub fn CatalogCacheFlushCatalog(catId: Oid); pub fn CatCacheInvalidate(cache: *mut CatCache, hashValue: uint32); pub fn PrepareToInvalidateCacheTuple( @@ -54027,6 +51349,14 @@ pub const XmlExprOp_IS_DOCUMENT: u32 = 7; pub const XmlOptionType_XMLOPTION_DOCUMENT: u32 = 0; #[deprecated(since = "0.12.0", note = "you want pg_sys::XmlOptionType::XMLOPTION_CONTENT")] pub const XmlOptionType_XMLOPTION_CONTENT: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_TID")] +pub const __pid_type_F_OWNER_TID: u32 = 0; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PID")] +pub const __pid_type_F_OWNER_PID: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PGRP")] +pub const __pid_type_F_OWNER_PGRP: u32 = 2; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_GID")] +pub const __pid_type_F_OWNER_GID: u32 = 2; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_STREAM")] pub const __socket_type_SOCK_STREAM: u32 = 1; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_DGRAM")] diff --git a/pgrx-pg-sys/src/include/pg16.rs b/pgrx-pg-sys/src/include/pg16.rs index 8ce3fd094f..65517ecad1 100644 --- a/pgrx-pg-sys/src/include/pg16.rs +++ b/pgrx-pg-sys/src/include/pg16.rs @@ -22,28 +22,51 @@ 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]; + fn extract_bit(byte: u8, index: usize) -> bool { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } #[inline] - pub fn set_bit(&mut self, index: usize, val: bool) { + pub fn get_bit(&self, index: usize) -> 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 byte = self.storage.as_ref()[byte_index]; + Self::extract_bit(byte, index) + } + #[inline] + pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); + Self::extract_bit(byte, index) + } + #[inline] + fn change_bit(byte: u8, index: usize, val: bool) -> u8 { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { - *byte |= mask; + byte | mask } else { - *byte &= !mask; + byte & !mask } } #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + *byte = Self::change_bit(*byte, index, val); + } + #[inline] + pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); + *byte = Self::change_bit(*byte, index, val); + } + #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -59,6 +82,21 @@ where val } #[inline] + pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if Self::raw_get_bit(this, i + bit_offset) { + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + val |= 1 << index; + } + } + val + } + #[inline] pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -70,6 +108,18 @@ where self.set_bit(index + bit_offset, val_bit_is_set); } } + #[inline] + pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); + } + } } #[repr(C)] #[derive(Default)] @@ -126,54 +176,26 @@ pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; pub const DEF_PGPORT: u32 = 28816; -#[allow(unsafe_code)] -pub const DEF_PGPORT_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"28816\0") }; -#[allow(unsafe_code)] -pub const DLSUFFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b".so\0") }; +pub const DEF_PGPORT_STR: &::core::ffi::CStr = c"28816"; +pub const DLSUFFIX: &::core::ffi::CStr = c".so"; pub const ENABLE_THREAD_SAFETY: u32 = 1; -#[allow(unsafe_code)] -pub const INT64_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; +pub const INT64_MODIFIER: &::core::ffi::CStr = c"l"; pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; -#[allow(unsafe_code)] -pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql-bugs@lists.postgresql.org\0") -}; -#[allow(unsafe_code)] -pub const PACKAGE_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL 16.6\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_TARNAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_URL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"https://www.postgresql.org/\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"16.6\0") }; -#[allow(unsafe_code)] -pub const PG_KRB_SRVNAM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres\0") }; -#[allow(unsafe_code)] -pub const PG_MAJORVERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"16\0") }; +pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = c"pgsql-bugs@lists.postgresql.org"; +pub const PACKAGE_NAME: &::core::ffi::CStr = c"PostgreSQL"; +pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 16.8"; +pub const PACKAGE_TARNAME: &::core::ffi::CStr = c"postgresql"; +pub const PACKAGE_URL: &::core::ffi::CStr = c"https://www.postgresql.org/"; +pub const PACKAGE_VERSION: &::core::ffi::CStr = c"16.8"; +pub const PG_KRB_SRVNAM: &::core::ffi::CStr = c"postgres"; +pub const PG_MAJORVERSION: &::core::ffi::CStr = c"16"; pub const PG_MAJORVERSION_NUM: u32 = 16; -pub const PG_MINORVERSION_NUM: u32 = 6; +pub const PG_MINORVERSION_NUM: u32 = 8; pub const PG_USE_STDBOOL: u32 = 1; -#[allow(unsafe_code)] -pub const PG_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"16.6\0") }; -pub const PG_VERSION_NUM: u32 = 160006; -#[allow(unsafe_code)] -pub const PG_VERSION_STR: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"PostgreSQL 16.6 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0") -}; +pub const PG_VERSION: &::core::ffi::CStr = c"16.8"; +pub const PG_VERSION_NUM: u32 = 160008; +pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 16.8 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -190,9 +212,7 @@ pub const XLOG_BLCKSZ: u32 = 8192; pub const DEFAULT_XLOG_SEG_SIZE: u32 = 16777216; pub const NAMEDATALEN: u32 = 64; pub const FUNC_MAX_ARGS: u32 = 100; -#[allow(unsafe_code)] -pub const FMGR_ABI_EXTRA: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const FMGR_ABI_EXTRA: &::core::ffi::CStr = c"PostgreSQL"; pub const INDEX_MAX_KEYS: u32 = 32; pub const PARTITION_MAX_KEYS: u32 = 32; pub const USE_FLOAT8_BYVAL: u32 = 1; @@ -205,352 +225,16 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -#[allow(unsafe_code)] -pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -#[allow(unsafe_code)] -pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = c"/tmp"; +pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = c"PostgreSQL"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const PG_IO_ALIGN_SIZE: u32 = 4096; pub const TRACE_SORT: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -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 = 35; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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_C2X: 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_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: 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 _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; -#[allow(unsafe_code)] -pub const P_tmpdir: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -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 __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 __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -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 __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 __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 __PTHREAD_MUTEX_HAVE_PREV: 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 EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; -pub const __bool_true_false_are_defined: u32 = 1; -pub const true_: u32 = 1; -pub const false_: u32 = 0; -#[allow(unsafe_code)] -pub const INT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%ld\0") }; -#[allow(unsafe_code)] -pub const UINT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%lu\0") }; +pub const SIG_ATOMIC_WIDTH: u32 = 32; +pub const INT64_FORMAT: &::core::ffi::CStr = c"%ld"; +pub const UINT64_FORMAT: &::core::ffi::CStr = c"%lu"; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; pub const PG_UINT8_MAX: u32 = 255; @@ -567,39 +251,16 @@ pub const STATUS_OK: u32 = 0; pub const STATUS_ERROR: i32 = -1; pub const STATUS_EOF: i32 = -2; pub const PG_BINARY: u32 = 0; -#[allow(unsafe_code)] -pub const PG_BINARY_A: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"a\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_R: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"r\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_W: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"w\0") }; +pub const PG_BINARY_A: &::core::ffi::CStr = c"a"; +pub const PG_BINARY_R: &::core::ffi::CStr = c"r"; +pub const PG_BINARY_W: &::core::ffi::CStr = c"w"; pub const PGINVALID_SOCKET: i32 = -1; -#[allow(unsafe_code)] -pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres (PostgreSQL) 16.6\n\0") }; -#[allow(unsafe_code)] -pub const EXE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const DEVNULL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/dev/null\0") }; +pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 16.8\n"; +pub const EXE: &::core::ffi::CStr = c""; +pub const DEVNULL: &::core::ffi::CStr = c"/dev/null"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -613,7 +274,6 @@ pub const NOTICE: u32 = 18; pub const WARNING: u32 = 19; pub const PGWARNING: u32 = 19; pub const WARNING_CLIENT_ONLY: u32 = 20; -pub const ERROR: u32 = 21; pub const PGERROR: u32 = 21; pub const FATAL: u32 = 22; pub const PANIC: u32 = 23; @@ -675,129 +335,6 @@ pub const LP_DEAD: u32 = 3; pub const SpecTokenOffsetNumber: u32 = 65534; pub const MovedPartitionsOffsetNumber: u32 = 65533; pub const FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; pub const FirstGenbkiObjectId: u32 = 10000; pub const FirstUnpinnedObjectId: u32 = 12000; @@ -1130,27 +667,10 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -#[allow(unsafe_code)] -pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Pg_magic_func\0") }; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = c"Pg_magic_func"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const PARAM_FLAG_CONST: u32 = 1; @@ -1262,100 +782,16 @@ pub const CURSOR_OPT_FAST_PLAN: u32 = 256; pub const CURSOR_OPT_GENERIC_PLAN: u32 = 512; pub const CURSOR_OPT_CUSTOM_PLAN: u32 = 1024; pub const CURSOR_OPT_PARALLEL_OK: u32 = 2048; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_dynshmem\0") }; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"mmap.\0") }; +pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = c"pg_dynshmem"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = c"mmap."; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const SIZEOF_DSA_POINTER: u32 = 8; -#[allow(unsafe_code)] -pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%016lx\0") }; +pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = c"%016lx"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1375,18 +811,12 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; pub const NO_MAX_DSIZE: i32 = -1; -pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; -pub const MAXNAMLEN: u32 = 255; pub const IO_DIRECT_DATA: u32 = 1; pub const IO_DIRECT_WAL: u32 = 2; pub const IO_DIRECT_WAL_INIT: u32 = 4; -pub const PG_O_DIRECT: u32 = 0; -#[allow(unsafe_code)] -pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; -#[allow(unsafe_code)] -pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql_tmp\0") }; +pub const PG_O_DIRECT: u32 = 16384; +pub const PG_TEMP_FILES_DIR: &::core::ffi::CStr = c"pgsql_tmp"; +pub const PG_TEMP_FILE_PREFIX: &::core::ffi::CStr = c"pgsql_tmp"; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const MAX_TIMESTAMP_PRECISION: u32 = 6; pub const MAX_INTERVAL_PRECISION: u32 = 6; @@ -1413,9 +843,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -#[allow(unsafe_code)] -pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_internal.init\0") }; +pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = c"pg_internal.init"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; @@ -1501,40 +929,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const NSIG: u32 = 65; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const __sigstack_defined: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1557,424 +955,8 @@ pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -#[allow(unsafe_code)] -pub const VALID_XFN_CHARS: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"0123456789ABCDEF.history.backup.partial\0") -}; +pub const VALID_XFN_CHARS: &::core::ffi::CStr = c"0123456789ABCDEF.history.backup.partial"; pub const PGSTAT_NUM_PROGRESS_PARAM: u32 = 20; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INET_ADDRSTRLEN: u32 = 16; -pub const INET6_ADDRSTRLEN: u32 = 46; -#[allow(unsafe_code)] -pub const _PATH_HEQUIV: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts.equiv\0") }; -#[allow(unsafe_code)] -pub const _PATH_HOSTS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts\0") }; -#[allow(unsafe_code)] -pub const _PATH_NETWORKS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/networks\0") }; -#[allow(unsafe_code)] -pub const _PATH_NSSWITCH_CONF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/nsswitch.conf\0") }; -#[allow(unsafe_code)] -pub const _PATH_PROTOCOLS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/protocols\0") }; -#[allow(unsafe_code)] -pub const _PATH_SERVICES: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/services\0") }; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; pub const MAX_STARTUP_PACKET_LENGTH: u32 = 10000; pub const AUTH_REQ_OK: u32 = 0; pub const AUTH_REQ_KRB4: u32 = 1; @@ -1999,18 +981,10 @@ pub const PG_WAIT_EXTENSION: u32 = 117440512; pub const PG_WAIT_IPC: u32 = 134217728; pub const PG_WAIT_TIMEOUT: u32 = 150994944; pub const PG_WAIT_IO: u32 = 167772160; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/pgstat.stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/pgstat.tmp\0") }; -#[allow(unsafe_code)] -pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat_tmp\0") }; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = c"pg_stat"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = c"pg_stat/pgstat.stat"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = c"pg_stat/pgstat.tmp"; +pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = c"pg_stat_tmp"; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638956; pub const SK_ISNULL: u32 = 1; pub const SK_UNARY: u32 = 2; @@ -2048,27 +1022,13 @@ pub const CHECKPOINT_CAUSE_XLOG: u32 = 128; pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -#[allow(unsafe_code)] -pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"recovery.signal\0") }; -#[allow(unsafe_code)] -pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"standby.signal\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label.old\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map.old\0") }; -#[allow(unsafe_code)] -pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"promote\0") }; +pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = c"recovery.signal"; +pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = c"standby.signal"; +pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = c"backup_label"; +pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = c"backup_label.old"; +pub const TABLESPACE_MAP: &::core::ffi::CStr = c"tablespace_map"; +pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = c"tablespace_map.old"; +pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = c"promote"; pub const RM_MAX_ID: u32 = 255; pub const RM_MIN_CUSTOM_ID: u32 = 128; pub const RM_MAX_CUSTOM_ID: u32 = 255; @@ -2106,12 +1066,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -#[allow(unsafe_code)] -pub const XLOGDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_wal\0") }; -#[allow(unsafe_code)] -pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"global/pg_control\0") }; +pub const XLOGDIR: &::core::ffi::CStr = c"pg_wal"; +pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = c"global/pg_control"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const XLR_NORMAL_MAX_BLOCK_ID: u32 = 4; @@ -2289,9 +1245,7 @@ pub const XACT_XINFO_HAS_DROPPED_STATS: u32 = 256; pub const XACT_COMPLETION_APPLY_FEEDBACK: u32 = 536870912; pub const XACT_COMPLETION_UPDATE_RELCACHE_FILE: u32 = 1073741824; pub const XACT_COMPLETION_FORCE_SYNC_COMMIT: u32 = 2147483648; -#[allow(unsafe_code)] -pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"heap\0") }; +pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = c"heap"; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; pub const TABLE_INSERT_NO_LOGICAL: u32 = 8; @@ -2367,9 +1321,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -#[allow(unsafe_code)] -pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"btree\0") }; +pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = c"btree"; pub const REINDEXOPT_VERBOSE: u32 = 1; pub const REINDEXOPT_REPORT_PROGRESS: u32 = 2; pub const REINDEXOPT_MISSING_OK: u32 = 4; @@ -2813,9 +1765,7 @@ pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; pub const ACL_SET_CHR: u8 = 115u8; pub const ACL_ALTER_SYSTEM_CHR: u8 = 65u8; -#[allow(unsafe_code)] -pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"arwdDxtXUCTcsA\0") }; +pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = c"arwdDxtXUCTcsA"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -3032,9 +1982,7 @@ pub const TRIGGER_DISABLED: u8 = 68u8; pub const RI_TRIGGER_PK: u32 = 1; pub const RI_TRIGGER_FK: u32 = 2; pub const RI_TRIGGER_NONE: u32 = 0; -#[allow(unsafe_code)] -pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql.auto.conf\0") }; +pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = c"postgresql.auto.conf"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -3331,12 +2279,8 @@ pub const PIPE_PROTO_IS_LAST: u32 = 1; pub const PIPE_PROTO_DEST_STDERR: u32 = 16; pub const PIPE_PROTO_DEST_CSVLOG: u32 = 32; pub const PIPE_PROTO_DEST_JSONLOG: u32 = 64; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles\0") }; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles.tmp\0") }; +pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = c"current_logfiles"; +pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = c"current_logfiles.tmp"; pub const RBTXN_HAS_CATALOG_CHANGES: u32 = 1; pub const RBTXN_IS_SUBXACT: u32 = 2; pub const RBTXN_IS_SERIALIZED: u32 = 4; @@ -3402,87 +2346,33 @@ pub const FORMAT_TYPE_ALLOW_INVALID: u32 = 2; pub const FORMAT_TYPE_FORCE_QUALIFY: u32 = 4; pub const FORMAT_TYPE_INVALID_AS_NULL: u32 = 8; pub const MAX_TIME_PRECISION: u32 = 6; -#[allow(unsafe_code)] -pub const DAGO: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ago\0") }; -#[allow(unsafe_code)] -pub const DCURRENT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current\0") }; -#[allow(unsafe_code)] -pub const EPOCH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"epoch\0") }; -#[allow(unsafe_code)] -pub const INVALID: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"invalid\0") }; -#[allow(unsafe_code)] -pub const EARLY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-infinity\0") }; -#[allow(unsafe_code)] -pub const LATE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"infinity\0") }; -#[allow(unsafe_code)] -pub const NOW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"now\0") }; -#[allow(unsafe_code)] -pub const TODAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"today\0") }; -#[allow(unsafe_code)] -pub const TOMORROW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tomorrow\0") }; -#[allow(unsafe_code)] -pub const YESTERDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"yesterday\0") }; -#[allow(unsafe_code)] -pub const ZULU: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"zulu\0") }; -#[allow(unsafe_code)] -pub const DMICROSEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"usecond\0") }; -#[allow(unsafe_code)] -pub const DMILLISEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"msecond\0") }; -#[allow(unsafe_code)] -pub const DSECOND: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"second\0") }; -#[allow(unsafe_code)] -pub const DMINUTE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"minute\0") }; -#[allow(unsafe_code)] -pub const DHOUR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hour\0") }; -#[allow(unsafe_code)] -pub const DDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"day\0") }; -#[allow(unsafe_code)] -pub const DWEEK: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"week\0") }; -#[allow(unsafe_code)] -pub const DMONTH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"month\0") }; -#[allow(unsafe_code)] -pub const DQUARTER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"quarter\0") }; -#[allow(unsafe_code)] -pub const DYEAR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"year\0") }; -#[allow(unsafe_code)] -pub const DDECADE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"decade\0") }; -#[allow(unsafe_code)] -pub const DCENTURY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"century\0") }; -#[allow(unsafe_code)] -pub const DMILLENNIUM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"millennium\0") }; -#[allow(unsafe_code)] -pub const DA_D: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ad\0") }; -#[allow(unsafe_code)] -pub const DB_C: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"bc\0") }; -#[allow(unsafe_code)] -pub const DTIMEZONE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"timezone\0") }; +pub const DAGO: &::core::ffi::CStr = c"ago"; +pub const DCURRENT: &::core::ffi::CStr = c"current"; +pub const EPOCH: &::core::ffi::CStr = c"epoch"; +pub const INVALID: &::core::ffi::CStr = c"invalid"; +pub const EARLY: &::core::ffi::CStr = c"-infinity"; +pub const LATE: &::core::ffi::CStr = c"infinity"; +pub const NOW: &::core::ffi::CStr = c"now"; +pub const TODAY: &::core::ffi::CStr = c"today"; +pub const TOMORROW: &::core::ffi::CStr = c"tomorrow"; +pub const YESTERDAY: &::core::ffi::CStr = c"yesterday"; +pub const ZULU: &::core::ffi::CStr = c"zulu"; +pub const DMICROSEC: &::core::ffi::CStr = c"usecond"; +pub const DMILLISEC: &::core::ffi::CStr = c"msecond"; +pub const DSECOND: &::core::ffi::CStr = c"second"; +pub const DMINUTE: &::core::ffi::CStr = c"minute"; +pub const DHOUR: &::core::ffi::CStr = c"hour"; +pub const DDAY: &::core::ffi::CStr = c"day"; +pub const DWEEK: &::core::ffi::CStr = c"week"; +pub const DMONTH: &::core::ffi::CStr = c"month"; +pub const DQUARTER: &::core::ffi::CStr = c"quarter"; +pub const DYEAR: &::core::ffi::CStr = c"year"; +pub const DDECADE: &::core::ffi::CStr = c"decade"; +pub const DCENTURY: &::core::ffi::CStr = c"century"; +pub const DMILLENNIUM: &::core::ffi::CStr = c"millennium"; +pub const DA_D: &::core::ffi::CStr = c"ad"; +pub const DB_C: &::core::ffi::CStr = c"bc"; +pub const DTIMEZONE: &::core::ffi::CStr = c"timezone"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -6906,9 +5796,7 @@ pub const DEFAULT_NUM_DISTINCT: u32 = 200; pub const DEFAULT_UNK_SEL: f64 = 0.005; pub const DEFAULT_NOT_UNK_SEL: f64 = 0.995; pub const SELFLAG_USED_DEFAULT: u32 = 1; -#[allow(unsafe_code)] -pub const RANGE_EMPTY_LITERAL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"empty\0") }; +pub const RANGE_EMPTY_LITERAL: &::core::ffi::CStr = c"empty"; pub const RANGE_EMPTY: u32 = 1; pub const RANGE_LB_INC: u32 = 2; pub const RANGE_UB_INC: u32 = 4; @@ -6929,137 +5817,15 @@ pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; pub const RANGESTRAT_EQ: u32 = 18; pub type pg_int64 = ::core::ffi::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::core::ffi::c_uchar; -pub type __u_short = ::core::ffi::c_ushort; -pub type __u_int = ::core::ffi::c_uint; -pub type __u_long = ::core::ffi::c_ulong; -pub type __int8_t = ::core::ffi::c_schar; -pub type __uint8_t = ::core::ffi::c_uchar; -pub type __int16_t = ::core::ffi::c_short; -pub type __uint16_t = ::core::ffi::c_ushort; -pub type __int32_t = ::core::ffi::c_int; -pub type __uint32_t = ::core::ffi::c_uint; -pub type __int64_t = ::core::ffi::c_long; -pub type __uint64_t = ::core::ffi::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::core::ffi::c_long; -pub type __u_quad_t = ::core::ffi::c_ulong; -pub type __intmax_t = ::core::ffi::c_long; -pub type __uintmax_t = ::core::ffi::c_ulong; -pub type __dev_t = ::core::ffi::c_ulong; pub type __uid_t = ::core::ffi::c_uint; pub type __gid_t = ::core::ffi::c_uint; pub type __ino_t = ::core::ffi::c_ulong; -pub type __ino64_t = ::core::ffi::c_ulong; pub type __mode_t = ::core::ffi::c_uint; -pub type __nlink_t = ::core::ffi::c_ulong; pub type __off_t = ::core::ffi::c_long; pub type __off64_t = ::core::ffi::c_long; pub type __pid_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::core::ffi::c_int; 2usize], -} -pub type __clock_t = ::core::ffi::c_long; -pub type __rlim_t = ::core::ffi::c_ulong; -pub type __rlim64_t = ::core::ffi::c_ulong; -pub type __id_t = ::core::ffi::c_uint; -pub type __time_t = ::core::ffi::c_long; -pub type __useconds_t = ::core::ffi::c_uint; -pub type __suseconds_t = ::core::ffi::c_long; -pub type __suseconds64_t = ::core::ffi::c_long; -pub type __daddr_t = ::core::ffi::c_int; -pub type __key_t = ::core::ffi::c_int; -pub type __clockid_t = ::core::ffi::c_int; -pub type __timer_t = *mut ::core::ffi::c_void; -pub type __blksize_t = ::core::ffi::c_long; -pub type __blkcnt_t = ::core::ffi::c_long; -pub type __blkcnt64_t = ::core::ffi::c_long; -pub type __fsblkcnt_t = ::core::ffi::c_ulong; -pub type __fsblkcnt64_t = ::core::ffi::c_ulong; -pub type __fsfilcnt_t = ::core::ffi::c_ulong; -pub type __fsfilcnt64_t = ::core::ffi::c_ulong; -pub type __fsword_t = ::core::ffi::c_long; -pub type __ssize_t = ::core::ffi::c_long; -pub type __syscall_slong_t = ::core::ffi::c_long; -pub type __syscall_ulong_t = ::core::ffi::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::core::ffi::c_char; -pub type __intptr_t = ::core::ffi::c_long; pub type __socklen_t = ::core::ffi::c_uint; pub type __sig_atomic_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::core::ffi::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::core::ffi::c_uint, - pub __wchb: [::core::ffi::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -7120,467 +5886,15 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub type wchar_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::core::ffi::c_int, - pub rem: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::core::ffi::c_long, - pub rem: ::core::ffi::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::core::ffi::c_longlong, - pub rem: ::core::ffi::c_longlong, -} -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 = ::core::ffi::c_ulong; -pub type ushort = ::core::ffi::c_ushort; -pub type uint = ::core::ffi::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::core::ffi::c_long; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct __sigset_t { pub __val: [::core::ffi::c_ulong; 16usize], } -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::core::ffi::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -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: ::core::ffi::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::core::ffi::c_uint, - pub __high: ::core::ffi::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::core::ffi::c_int, - pub __count: ::core::ffi::c_uint, - pub __owner: ::core::ffi::c_int, - pub __nusers: ::core::ffi::c_uint, - pub __kind: ::core::ffi::c_int, - pub __spins: ::core::ffi::c_short, - pub __elision: ::core::ffi::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::core::ffi::c_uint, - pub __writers: ::core::ffi::c_uint, - pub __wrphase_futex: ::core::ffi::c_uint, - pub __writers_futex: ::core::ffi::c_uint, - pub __pad3: ::core::ffi::c_uint, - pub __pad4: ::core::ffi::c_uint, - pub __cur_writer: ::core::ffi::c_int, - pub __shared: ::core::ffi::c_int, - pub __rwelision: ::core::ffi::c_schar, - pub __pad1: [::core::ffi::c_uchar; 7usize], - pub __pad2: ::core::ffi::c_ulong, - pub __flags: ::core::ffi::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::core::ffi::c_uint; 2usize], - pub __g_size: [::core::ffi::c_uint; 2usize], - pub __g1_orig_size: ::core::ffi::c_uint, - pub __wrefs: ::core::ffi::c_uint, - pub __g_signals: [::core::ffi::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::core::ffi::c_uint; -pub type __thrd_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::core::ffi::c_int, -} -pub type pthread_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::core::ffi::c_uint; -pub type pthread_once_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::core::ffi::c_char; 40usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::core::ffi::c_char; 48usize], - pub __align: ::core::ffi::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::core::ffi::c_char; 8usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::core::ffi::c_char; 32usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::core::ffi::c_int, - pub rand_deg: ::core::ffi::c_int, - pub rand_sep: ::core::ffi::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::core::ffi::c_ushort; 3usize], - pub __old_x: [::core::ffi::c_ushort; 3usize], - pub __c: ::core::ffi::c_ushort, - pub __init: ::core::ffi::c_ushort, - pub __a: ::core::ffi::c_ulonglong, -} -pub type __compar_fn_t = ::core::option::Option< - unsafe extern "C" fn( - arg1: *const ::core::ffi::c_void, - arg2: *const ::core::ffi::c_void, - ) -> ::core::ffi::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::core::ffi::c_ushort, - pub __ctype_tolower: *const ::core::ffi::c_int, - pub __ctype_toupper: *const ::core::ffi::c_int, - pub __names: [*const ::core::ffi::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::core::ffi::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -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 = ::core::ffi::c_schar; -pub type int_fast16_t = ::core::ffi::c_long; -pub type int_fast32_t = ::core::ffi::c_long; -pub type int_fast64_t = ::core::ffi::c_long; -pub type uint_fast8_t = ::core::ffi::c_uchar; -pub type uint_fast16_t = ::core::ffi::c_ulong; -pub type uint_fast32_t = ::core::ffi::c_ulong; -pub type uint_fast64_t = ::core::ffi::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::core::ffi::c_char, - pub thousands_sep: *mut ::core::ffi::c_char, - pub grouping: *mut ::core::ffi::c_char, - pub int_curr_symbol: *mut ::core::ffi::c_char, - pub currency_symbol: *mut ::core::ffi::c_char, - pub mon_decimal_point: *mut ::core::ffi::c_char, - pub mon_thousands_sep: *mut ::core::ffi::c_char, - pub mon_grouping: *mut ::core::ffi::c_char, - pub positive_sign: *mut ::core::ffi::c_char, - pub negative_sign: *mut ::core::ffi::c_char, - pub int_frac_digits: ::core::ffi::c_char, - pub frac_digits: ::core::ffi::c_char, - pub p_cs_precedes: ::core::ffi::c_char, - pub p_sep_by_space: ::core::ffi::c_char, - pub n_cs_precedes: ::core::ffi::c_char, - pub n_sep_by_space: ::core::ffi::c_char, - pub p_sign_posn: ::core::ffi::c_char, - pub n_sign_posn: ::core::ffi::c_char, - pub int_p_cs_precedes: ::core::ffi::c_char, - pub int_p_sep_by_space: ::core::ffi::c_char, - pub int_n_cs_precedes: ::core::ffi::c_char, - pub int_n_sep_by_space: ::core::ffi::c_char, - pub int_p_sign_posn: ::core::ffi::c_char, - pub int_n_sign_posn: ::core::ffi::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_funcptr_t = ::core::option::Option; pub type Pointer = *mut ::core::ffi::c_char; pub type int8 = ::core::ffi::c_schar; @@ -7725,32 +6039,7 @@ impl Default for PGAlignedXLogBlock { } } } -pub mod _bindgen_ty_1 { - pub type Type = ::core::ffi::c_uint; - pub const _ISupper: Type = 256; - pub const _ISlower: Type = 512; - pub const _ISalpha: Type = 1024; - pub const _ISdigit: Type = 2048; - pub const _ISxdigit: Type = 4096; - pub const _ISspace: Type = 8192; - pub const _ISprint: Type = 16384; - pub const _ISgraph: Type = 32768; - pub const _ISblank: Type = 1; - pub const _IScntrl: Type = 2; - pub const _ISpunct: Type = 4; - pub const _ISalnum: Type = 8; -} pub type pgsocket = ::core::ffi::c_int; -pub type float_t = f32; -pub type double_t = f64; -pub mod _bindgen_ty_2 { - pub type Type = ::core::ffi::c_uint; - pub const FP_NAN: Type = 0; - pub const FP_INFINITE: Type = 1; - pub const FP_ZERO: Type = 2; - pub const FP_SUBNORMAL: Type = 3; - pub const FP_NORMAL: Type = 4; -} pub type qsort_arg_comparator = ::core::option::Option< unsafe extern "C" fn( a: *const ::core::ffi::c_void, @@ -7768,7 +6057,6 @@ pub struct __jmp_buf_tag { pub __mask_was_saved: ::core::ffi::c_int, pub __saved_mask: __sigset_t, } -pub type jmp_buf = [__jmp_buf_tag; 1usize]; pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -8714,6 +7002,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_off_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_off_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn lp_flags(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } } @@ -8725,6 +7035,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_flags_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 15usize, + 2u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_flags_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 15usize, + 2u8, + val as u64, + ) + } + } + #[inline] pub fn lp_len(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } } @@ -8736,6 +7068,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_len_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 17usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_len_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 17usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( lp_off: ::core::ffi::c_uint, lp_flags: ::core::ffi::c_uint, @@ -8788,34 +7142,6 @@ impl Default for HeapTupleData { } } pub type HeapTuple = *mut HeapTupleData; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::core::ffi::c_short, - pub l_whence: ::core::ffi::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::core::ffi::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; pub type TimeLineID = uint32; @@ -9240,36 +7566,6 @@ pub struct instr_time { pub ticks: int64, } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::core::ffi::c_int, - pub tm_min: ::core::ffi::c_int, - pub tm_hour: ::core::ffi::c_int, - pub tm_mday: ::core::ffi::c_int, - pub tm_mon: ::core::ffi::c_int, - pub tm_year: ::core::ffi::c_int, - pub tm_wday: ::core::ffi::c_int, - pub tm_yday: ::core::ffi::c_int, - pub tm_isdst: ::core::ffi::c_int, - pub tm_gmtoff: ::core::ffi::c_long, - pub tm_zone: *const ::core::ffi::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -#[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct BufferUsage { pub shared_blks_hit: int64, @@ -16409,18 +14705,6 @@ impl Default for dirent { } } } -pub mod _bindgen_ty_3 { - pub type Type = ::core::ffi::c_uint; - pub const DT_UNKNOWN: Type = 0; - pub const DT_FIFO: Type = 1; - pub const DT_CHR: Type = 2; - pub const DT_DIR: Type = 4; - pub const DT_BLK: Type = 6; - pub const DT_REG: Type = 8; - pub const DT_LNK: Type = 10; - pub const DT_SOCK: Type = 12; - pub const DT_WHT: Type = 14; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { @@ -19200,586 +17484,14 @@ pub mod TypeFuncClass { pub const TYPEFUNC_OTHER: Type = 4; } pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::core::ffi::c_int, - pub sival_ptr: *mut ::core::ffi::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::core::ffi::c_int, - pub si_errno: ::core::ffi::c_int, - pub si_code: ::core::ffi::c_int, - pub __pad0: ::core::ffi::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::core::ffi::c_int, - pub si_overrun: ::core::ffi::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::core::ffi::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::core::ffi::c_void, - pub si_addr_lsb: ::core::ffi::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::core::ffi::c_void, - pub _upper: *mut ::core::ffi::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::core::ffi::c_long, - pub si_fd: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::core::ffi::c_void, - pub _syscall: ::core::ffi::c_int, - pub _arch: ::core::ffi::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_4 { - pub type Type = ::core::ffi::c_int; - pub const SI_ASYNCNL: Type = -60; - pub const SI_DETHREAD: Type = -7; - pub const SI_TKILL: Type = -6; - pub const SI_SIGIO: Type = -5; - pub const SI_ASYNCIO: Type = -4; - pub const SI_MESGQ: Type = -3; - pub const SI_TIMER: Type = -2; - pub const SI_QUEUE: Type = -1; - pub const SI_USER: Type = 0; - pub const SI_KERNEL: Type = 128; -} -pub mod _bindgen_ty_5 { - pub type Type = ::core::ffi::c_uint; - pub const ILL_ILLOPC: Type = 1; - pub const ILL_ILLOPN: Type = 2; - pub const ILL_ILLADR: Type = 3; - pub const ILL_ILLTRP: Type = 4; - pub const ILL_PRVOPC: Type = 5; - pub const ILL_PRVREG: Type = 6; - pub const ILL_COPROC: Type = 7; - pub const ILL_BADSTK: Type = 8; - pub const ILL_BADIADDR: Type = 9; -} -pub mod _bindgen_ty_6 { - pub type Type = ::core::ffi::c_uint; - pub const FPE_INTDIV: Type = 1; - pub const FPE_INTOVF: Type = 2; - pub const FPE_FLTDIV: Type = 3; - pub const FPE_FLTOVF: Type = 4; - pub const FPE_FLTUND: Type = 5; - pub const FPE_FLTRES: Type = 6; - pub const FPE_FLTINV: Type = 7; - pub const FPE_FLTSUB: Type = 8; - pub const FPE_FLTUNK: Type = 14; - pub const FPE_CONDTRAP: Type = 15; -} -pub mod _bindgen_ty_7 { - pub type Type = ::core::ffi::c_uint; - pub const SEGV_MAPERR: Type = 1; - pub const SEGV_ACCERR: Type = 2; - pub const SEGV_BNDERR: Type = 3; - pub const SEGV_PKUERR: Type = 4; - pub const SEGV_ACCADI: Type = 5; - pub const SEGV_ADIDERR: Type = 6; - pub const SEGV_ADIPERR: Type = 7; - pub const SEGV_MTEAERR: Type = 8; - pub const SEGV_MTESERR: Type = 9; -} -pub mod _bindgen_ty_8 { - pub type Type = ::core::ffi::c_uint; - pub const BUS_ADRALN: Type = 1; - pub const BUS_ADRERR: Type = 2; - pub const BUS_OBJERR: Type = 3; - pub const BUS_MCEERR_AR: Type = 4; - pub const BUS_MCEERR_AO: Type = 5; -} -pub mod _bindgen_ty_9 { - pub type Type = ::core::ffi::c_uint; - pub const CLD_EXITED: Type = 1; - pub const CLD_KILLED: Type = 2; - pub const CLD_DUMPED: Type = 3; - pub const CLD_TRAPPED: Type = 4; - pub const CLD_STOPPED: Type = 5; - pub const CLD_CONTINUED: Type = 6; -} -pub mod _bindgen_ty_10 { - pub type Type = ::core::ffi::c_uint; - pub const POLL_IN: Type = 1; - pub const POLL_OUT: Type = 2; - pub const POLL_MSG: Type = 3; - pub const POLL_ERR: Type = 4; - pub const POLL_PRI: Type = 5; - pub const POLL_HUP: Type = 6; -} -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::core::ffi::c_int, - pub sigev_notify: ::core::ffi::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::core::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub mod _bindgen_ty_11 { +pub mod _bindgen_ty_13 { pub type Type = ::core::ffi::c_uint; pub const SIGEV_SIGNAL: Type = 0; pub const SIGEV_NONE: Type = 1; pub const SIGEV_THREAD: Type = 2; pub const SIGEV_THREAD_ID: Type = 4; } -pub type __sighandler_t = ::core::option::Option; -pub type sig_t = __sighandler_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::core::ffi::c_int, - pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::core::option::Option< - unsafe extern "C" fn( - arg1: ::core::ffi::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::core::ffi::c_void, - ), - >, -} -impl Default for sigaction__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigaction { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::core::ffi::c_ushort, - pub gs: ::core::ffi::c_ushort, - pub fs: ::core::ffi::c_ushort, - pub __pad0: ::core::ffi::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_flags: ::core::ffi::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type greg_t = ::core::ffi::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::core::ffi::c_ulonglong; 8usize], -} -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::core::ffi::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::core::ffi::c_ulonglong; 4usize], -} -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_12 { - pub type Type = ::core::ffi::c_uint; - pub const SS_ONSTACK: Type = 1; - pub const SS_DISABLE: Type = 2; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_onstack: ::core::ffi::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} +pub type socklen_t = __socklen_t; pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -19867,42 +17579,8 @@ pub mod ProgressCommandType { pub const PROGRESS_COMMAND_BASEBACKUP: Type = 5; pub const PROGRESS_COMMAND_COPY: Type = 6; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::core::ffi::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type socklen_t = __socklen_t; -pub mod __socket_type { - pub type Type = ::core::ffi::c_uint; - pub const SOCK_STREAM: Type = 1; - pub const SOCK_DGRAM: Type = 2; - pub const SOCK_RAW: Type = 3; - pub const SOCK_RDM: Type = 4; - pub const SOCK_SEQPACKET: Type = 5; - pub const SOCK_DCCP: Type = 6; - pub const SOCK_PACKET: Type = 10; - pub const SOCK_CLOEXEC: Type = 524288; - pub const SOCK_NONBLOCK: Type = 2048; -} pub type sa_family_t = ::core::ffi::c_ushort; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::core::ffi::c_char; 14usize], -} -#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr_storage { pub ss_family: sa_family_t, @@ -19918,491 +17596,6 @@ impl Default for sockaddr_storage { } } } -pub mod _bindgen_ty_13 { - pub type Type = ::core::ffi::c_uint; - pub const MSG_OOB: Type = 1; - pub const MSG_PEEK: Type = 2; - pub const MSG_DONTROUTE: Type = 4; - pub const MSG_CTRUNC: Type = 8; - pub const MSG_PROXY: Type = 16; - pub const MSG_TRUNC: Type = 32; - pub const MSG_DONTWAIT: Type = 64; - pub const MSG_EOR: Type = 128; - pub const MSG_WAITALL: Type = 256; - pub const MSG_FIN: Type = 512; - pub const MSG_SYN: Type = 1024; - pub const MSG_CONFIRM: Type = 2048; - pub const MSG_RST: Type = 4096; - pub const MSG_ERRQUEUE: Type = 8192; - pub const MSG_NOSIGNAL: Type = 16384; - pub const MSG_MORE: Type = 32768; - pub const MSG_WAITFORONE: Type = 65536; - pub const MSG_BATCH: Type = 262144; - pub const MSG_ZEROCOPY: Type = 67108864; - pub const MSG_FASTOPEN: Type = 536870912; - pub const MSG_CMSG_CLOEXEC: Type = 1073741824; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::core::ffi::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::core::ffi::c_void, - pub msg_controllen: usize, - pub msg_flags: ::core::ffi::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::core::ffi::c_int, - pub cmsg_type: ::core::ffi::c_int, - pub __cmsg_data: __IncompleteArrayField<::core::ffi::c_uchar>, -} -pub mod _bindgen_ty_14 { - pub type Type = ::core::ffi::c_uint; - pub const SCM_RIGHTS: Type = 1; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::core::ffi::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::core::option::Option; -pub type __kernel_key_t = ::core::ffi::c_int; -pub type __kernel_mqd_t = ::core::ffi::c_int; -pub type __kernel_old_uid_t = ::core::ffi::c_ushort; -pub type __kernel_old_gid_t = ::core::ffi::c_ushort; -pub type __kernel_old_dev_t = ::core::ffi::c_ulong; -pub type __kernel_long_t = ::core::ffi::c_long; -pub type __kernel_ulong_t = ::core::ffi::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::core::ffi::c_uint; -pub type __kernel_pid_t = ::core::ffi::c_int; -pub type __kernel_ipc_pid_t = ::core::ffi::c_int; -pub type __kernel_uid_t = ::core::ffi::c_uint; -pub type __kernel_gid_t = ::core::ffi::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::core::ffi::c_int; -pub type __kernel_uid32_t = ::core::ffi::c_uint; -pub type __kernel_gid32_t = ::core::ffi::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::core::ffi::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::core::ffi::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::core::ffi::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::core::ffi::c_int; -pub type __kernel_clockid_t = ::core::ffi::c_int; -pub type __kernel_caddr_t = *mut ::core::ffi::c_char; -pub type __kernel_uid16_t = ::core::ffi::c_ushort; -pub type __kernel_gid16_t = ::core::ffi::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::core::ffi::c_int, - pub l_linger: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::core::ffi::c_ushort, - pub sa_data: [::core::ffi::c_uchar; 14usize], -} -pub mod _bindgen_ty_15 { - pub type Type = ::core::ffi::c_uint; - pub const SHUT_RD: Type = 0; - pub const SHUT_WR: Type = 1; - pub const SHUT_RDWR: Type = 2; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::core::ffi::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::core::ffi::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::core::ffi::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub mod _bindgen_ty_16 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_IP: Type = 0; - pub const IPPROTO_ICMP: Type = 1; - pub const IPPROTO_IGMP: Type = 2; - pub const IPPROTO_IPIP: Type = 4; - pub const IPPROTO_TCP: Type = 6; - pub const IPPROTO_EGP: Type = 8; - pub const IPPROTO_PUP: Type = 12; - pub const IPPROTO_UDP: Type = 17; - pub const IPPROTO_IDP: Type = 22; - pub const IPPROTO_TP: Type = 29; - pub const IPPROTO_DCCP: Type = 33; - pub const IPPROTO_IPV6: Type = 41; - pub const IPPROTO_RSVP: Type = 46; - pub const IPPROTO_GRE: Type = 47; - pub const IPPROTO_ESP: Type = 50; - pub const IPPROTO_AH: Type = 51; - pub const IPPROTO_MTP: Type = 92; - pub const IPPROTO_BEETPH: Type = 94; - pub const IPPROTO_ENCAP: Type = 98; - pub const IPPROTO_PIM: Type = 103; - pub const IPPROTO_COMP: Type = 108; - pub const IPPROTO_SCTP: Type = 132; - pub const IPPROTO_UDPLITE: Type = 136; - pub const IPPROTO_MPLS: Type = 137; - pub const IPPROTO_ETHERNET: Type = 143; - pub const IPPROTO_RAW: Type = 255; - pub const IPPROTO_MPTCP: Type = 262; - pub const IPPROTO_MAX: Type = 263; -} -pub mod _bindgen_ty_17 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_HOPOPTS: Type = 0; - pub const IPPROTO_ROUTING: Type = 43; - pub const IPPROTO_FRAGMENT: Type = 44; - pub const IPPROTO_ICMPV6: Type = 58; - pub const IPPROTO_NONE: Type = 59; - pub const IPPROTO_DSTOPTS: Type = 60; - pub const IPPROTO_MH: Type = 135; -} -pub type in_port_t = u16; -pub mod _bindgen_ty_18 { - pub type Type = ::core::ffi::c_uint; - pub const IPPORT_ECHO: Type = 7; - pub const IPPORT_DISCARD: Type = 9; - pub const IPPORT_SYSTAT: Type = 11; - pub const IPPORT_DAYTIME: Type = 13; - pub const IPPORT_NETSTAT: Type = 15; - pub const IPPORT_FTP: Type = 21; - pub const IPPORT_TELNET: Type = 23; - pub const IPPORT_SMTP: Type = 25; - pub const IPPORT_TIMESERVER: Type = 37; - pub const IPPORT_NAMESERVER: Type = 42; - pub const IPPORT_WHOIS: Type = 43; - pub const IPPORT_MTP: Type = 57; - pub const IPPORT_TFTP: Type = 69; - pub const IPPORT_RJE: Type = 77; - pub const IPPORT_FINGER: Type = 79; - pub const IPPORT_TTYLINK: Type = 87; - pub const IPPORT_SUPDUP: Type = 95; - pub const IPPORT_EXECSERVER: Type = 512; - pub const IPPORT_LOGINSERVER: Type = 513; - pub const IPPORT_CMDSERVER: Type = 514; - pub const IPPORT_EFSSERVER: Type = 520; - pub const IPPORT_BIFFUDP: Type = 512; - pub const IPPORT_WHOSERVER: Type = 513; - pub const IPPORT_ROUTESERVER: Type = 520; - pub const IPPORT_RESERVED: Type = 1024; - pub const IPPORT_USERRESERVED: Type = 5000; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::core::ffi::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::core::ffi::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::core::ffi::c_char, - pub r_aliases: *mut *mut ::core::ffi::c_char, - pub r_number: ::core::ffi::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::core::ffi::c_char, - pub n_aliases: *mut *mut ::core::ffi::c_char, - pub n_addrtype: ::core::ffi::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::core::ffi::c_char, - pub h_aliases: *mut *mut ::core::ffi::c_char, - pub h_addrtype: ::core::ffi::c_int, - pub h_length: ::core::ffi::c_int, - pub h_addr_list: *mut *mut ::core::ffi::c_char, -} -impl Default for hostent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::core::ffi::c_char, - pub s_aliases: *mut *mut ::core::ffi::c_char, - pub s_port: ::core::ffi::c_int, - pub s_proto: *mut ::core::ffi::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::core::ffi::c_char, - pub p_aliases: *mut *mut ::core::ffi::c_char, - pub p_proto: ::core::ffi::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::core::ffi::c_int, - pub ai_family: ::core::ffi::c_int, - pub ai_socktype: ::core::ffi::c_int, - pub ai_protocol: ::core::ffi::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::core::ffi::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct SockAddr { @@ -26818,6 +24011,7 @@ pub struct ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { pub fcinfo_data: FunctionCallInfo, pub fn_addr: PGFunction, pub nargs: ::core::ffi::c_int, + pub make_ro: bool, } impl Default for ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { fn default() -> Self { @@ -27932,7 +25126,18 @@ pub struct IndexOptInfo { pub amhasgetbitmap: bool, pub amcanparallel: bool, pub amcanmarkpos: bool, - pub amcostestimate: ::core::option::Option, + pub amcostestimate: ::core::option::Option< + unsafe extern "C" fn( + arg1: *mut PlannerInfo, + arg2: *mut IndexPath, + arg3: f64, + arg4: *mut Cost, + arg5: *mut Cost, + arg6: *mut Selectivity, + arg7: *mut f64, + arg8: *mut f64, + ), + >, } impl Default for IndexOptInfo { fn default() -> Self { @@ -30580,7 +27785,7 @@ pub mod PLpgSQL_stmt_type { pub const PLPGSQL_STMT_COMMIT: Type = 25; pub const PLPGSQL_STMT_ROLLBACK: Type = 26; } -pub mod _bindgen_ty_19 { +pub mod _bindgen_ty_25 { pub type Type = ::core::ffi::c_uint; pub const PLPGSQL_RC_OK: Type = 0; pub const PLPGSQL_RC_EXIT: Type = 1; @@ -33070,6 +30275,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn haspos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_haspos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u32) } } @@ -33081,6 +30308,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 11u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 11u8, + val as u64, + ) + } + } + #[inline] pub fn pos(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -33092,6 +30341,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn pos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_pos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( haspos: uint32, len: uint32, @@ -33158,6 +30429,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn length_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 12u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_length_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 12u8, + val as u64, + ) + } + } + #[inline] pub fn distance(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -33169,6 +30462,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn distance_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_distance_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1(length: uint32, distance: uint32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 12u8, { @@ -33261,6 +30576,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn selected_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_selected_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn in_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } @@ -33272,6 +30609,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn in__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_in_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn replace(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } @@ -33283,6 +30642,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn replace_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 2usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_replace_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 2usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn repeated(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } @@ -33294,6 +30675,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn repeated_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 3usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_repeated_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 3usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn skip(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } @@ -33305,6 +30708,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn skip_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 4usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_skip_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 4usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn unused(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) } } @@ -33316,6 +30741,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn unused_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 5usize, + 3u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_unused_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 5usize, + 3u8, + val as u64, + ) + } + } + #[inline] pub fn type_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } } @@ -33327,6 +30774,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn type__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 8usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_type_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 8usize, + 8u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } } @@ -33338,6 +30807,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 16usize, + 16u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 16usize, + 16u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( selected: uint32, in_: uint32, @@ -34288,11 +31779,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -34362,48 +31848,7 @@ pub struct SnapBuild { pub _address: u8, } #[pgrx_macros::pg_guard] -extern "C" { - #[link_name = "\u{1}__isoc99_fscanf"] - pub fn fscanf1( - __stream: *mut FILE, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_scanf"] - pub fn scanf1(__format: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_sscanf"] - pub fn sscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vfscanf"] - pub fn vfscanf1( - __s: *mut FILE, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vscanf"] - pub fn vscanf1( - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vsscanf"] - pub fn vsscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - pub fn alloca(__size: ::core::ffi::c_ulong) -> *mut ::core::ffi::c_void; - pub fn atexit(__func: ::core::option::Option) -> ::core::ffi::c_int; - pub fn at_quick_exit( - __func: ::core::option::Option, - ) -> ::core::ffi::c_int; - pub fn __memcmpeq( - __s1: *const ::core::ffi::c_void, - __s2: *const ::core::ffi::c_void, - __n: usize, - ) -> ::core::ffi::c_int; +unsafe extern "C" { pub fn ExceptionalCondition( conditionName: *const ::core::ffi::c_char, fileName: *const ::core::ffi::c_char, @@ -34423,6 +31868,7 @@ extern "C" { tail: *const ::core::ffi::c_char, ); pub fn canonicalize_path(path: *mut ::core::ffi::c_char); + pub fn canonicalize_path_enc(path: *mut ::core::ffi::c_char, encoding: ::core::ffi::c_int); pub fn make_native_path(filename: *mut ::core::ffi::c_char); pub fn cleanup_path(path: *mut ::core::ffi::c_char); pub fn path_contains_parent_reference(path: *const ::core::ffi::c_char) -> bool; @@ -34515,22 +31961,42 @@ extern "C" { pub fn pg_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_toupper(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; + pub fn pg_vsnprintf( + str_: *mut ::core::ffi::c_char, + count: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_snprintf( str_: *mut ::core::ffi::c_char, count: usize, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vsprintf( + str_: *mut ::core::ffi::c_char, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_sprintf( str_: *mut ::core::ffi::c_char, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vfprintf( + stream: *mut FILE, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_fprintf( stream: *mut FILE, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vprintf( + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_printf(fmt: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; pub fn pg_strfromd( str_: *mut ::core::ffi::c_char, @@ -34552,210 +32018,6 @@ extern "C" { uid: *mut uid_t, gid: *mut gid_t, ) -> ::core::ffi::c_int; - pub fn __acos(__x: f64) -> f64; - pub fn __asin(__x: f64) -> f64; - pub fn __atan(__x: f64) -> f64; - pub fn __atan2(__y: f64, __x: f64) -> f64; - pub fn __cos(__x: f64) -> f64; - pub fn __sin(__x: f64) -> f64; - pub fn __tan(__x: f64) -> f64; - pub fn __cosh(__x: f64) -> f64; - pub fn __sinh(__x: f64) -> f64; - pub fn __tanh(__x: f64) -> f64; - pub fn __acosh(__x: f64) -> f64; - pub fn __asinh(__x: f64) -> f64; - pub fn __atanh(__x: f64) -> f64; - pub fn __exp(__x: f64) -> f64; - pub fn __frexp(__x: f64, __exponent: *mut ::core::ffi::c_int) -> f64; - pub fn __ldexp(__x: f64, __exponent: ::core::ffi::c_int) -> f64; - pub fn __log(__x: f64) -> f64; - pub fn __log10(__x: f64) -> f64; - pub fn __modf(__x: f64, __iptr: *mut f64) -> f64; - pub fn __expm1(__x: f64) -> f64; - pub fn __log1p(__x: f64) -> f64; - pub fn __logb(__x: f64) -> f64; - pub fn __exp2(__x: f64) -> f64; - pub fn __log2(__x: f64) -> f64; - pub fn __pow(__x: f64, __y: f64) -> f64; - pub fn __sqrt(__x: f64) -> f64; - pub fn __hypot(__x: f64, __y: f64) -> f64; - pub fn __cbrt(__x: f64) -> f64; - pub fn __ceil(__x: f64) -> f64; - pub fn __fabs(__x: f64) -> f64; - pub fn __floor(__x: f64) -> f64; - pub fn __fmod(__x: f64, __y: f64) -> f64; - pub fn __drem(__x: f64, __y: f64) -> f64; - pub fn __significand(__x: f64) -> f64; - pub fn __copysign(__x: f64, __y: f64) -> f64; - pub fn __nan(__tagb: *const ::core::ffi::c_char) -> f64; - pub fn __j0(arg1: f64) -> f64; - pub fn __j1(arg1: f64) -> f64; - pub fn __jn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __y0(arg1: f64) -> f64; - pub fn __y1(arg1: f64) -> f64; - pub fn __yn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __erf(arg1: f64) -> f64; - pub fn __erfc(arg1: f64) -> f64; - pub fn __lgamma(arg1: f64) -> f64; - pub fn __tgamma(arg1: f64) -> f64; - pub fn __gamma(arg1: f64) -> f64; - pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::core::ffi::c_int) -> f64; - pub fn __rint(__x: f64) -> f64; - pub fn __nextafter(__x: f64, __y: f64) -> f64; - pub fn __nexttoward(__x: f64, __y: u128) -> f64; - pub fn __remainder(__x: f64, __y: f64) -> f64; - pub fn __scalbn(__x: f64, __n: ::core::ffi::c_int) -> f64; - pub fn __ilogb(__x: f64) -> ::core::ffi::c_int; - pub fn __scalbln(__x: f64, __n: ::core::ffi::c_long) -> f64; - pub fn __nearbyint(__x: f64) -> f64; - pub fn __round(__x: f64) -> f64; - pub fn __trunc(__x: f64) -> f64; - pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::core::ffi::c_int) -> f64; - pub fn __lrint(__x: f64) -> ::core::ffi::c_long; - pub fn __llrint(__x: f64) -> ::core::ffi::c_longlong; - pub fn __lround(__x: f64) -> ::core::ffi::c_long; - pub fn __llround(__x: f64) -> ::core::ffi::c_longlong; - pub fn __fdim(__x: f64, __y: f64) -> f64; - pub fn __fmax(__x: f64, __y: f64) -> f64; - pub fn __fmin(__x: f64, __y: f64) -> f64; - pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64; - pub fn __scalb(__x: f64, __n: f64) -> f64; - pub fn __acosf(__x: f32) -> f32; - pub fn __asinf(__x: f32) -> f32; - pub fn __atanf(__x: f32) -> f32; - pub fn __atan2f(__y: f32, __x: f32) -> f32; - pub fn __cosf(__x: f32) -> f32; - pub fn __sinf(__x: f32) -> f32; - pub fn __tanf(__x: f32) -> f32; - pub fn __coshf(__x: f32) -> f32; - pub fn __sinhf(__x: f32) -> f32; - pub fn __tanhf(__x: f32) -> f32; - pub fn __acoshf(__x: f32) -> f32; - pub fn __asinhf(__x: f32) -> f32; - pub fn __atanhf(__x: f32) -> f32; - pub fn __expf(__x: f32) -> f32; - pub fn __frexpf(__x: f32, __exponent: *mut ::core::ffi::c_int) -> f32; - pub fn __ldexpf(__x: f32, __exponent: ::core::ffi::c_int) -> f32; - pub fn __logf(__x: f32) -> f32; - pub fn __log10f(__x: f32) -> f32; - pub fn __modff(__x: f32, __iptr: *mut f32) -> f32; - pub fn __expm1f(__x: f32) -> f32; - pub fn __log1pf(__x: f32) -> f32; - pub fn __logbf(__x: f32) -> f32; - pub fn __exp2f(__x: f32) -> f32; - pub fn __log2f(__x: f32) -> f32; - pub fn __powf(__x: f32, __y: f32) -> f32; - pub fn __sqrtf(__x: f32) -> f32; - pub fn __hypotf(__x: f32, __y: f32) -> f32; - pub fn __cbrtf(__x: f32) -> f32; - pub fn __ceilf(__x: f32) -> f32; - pub fn __fabsf(__x: f32) -> f32; - pub fn __floorf(__x: f32) -> f32; - pub fn __fmodf(__x: f32, __y: f32) -> f32; - pub fn __dremf(__x: f32, __y: f32) -> f32; - pub fn __significandf(__x: f32) -> f32; - pub fn __copysignf(__x: f32, __y: f32) -> f32; - pub fn __nanf(__tagb: *const ::core::ffi::c_char) -> f32; - pub fn __j0f(arg1: f32) -> f32; - pub fn __j1f(arg1: f32) -> f32; - pub fn __jnf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __y0f(arg1: f32) -> f32; - pub fn __y1f(arg1: f32) -> f32; - pub fn __ynf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __erff(arg1: f32) -> f32; - pub fn __erfcf(arg1: f32) -> f32; - pub fn __lgammaf(arg1: f32) -> f32; - pub fn __tgammaf(arg1: f32) -> f32; - pub fn __gammaf(arg1: f32) -> f32; - pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::core::ffi::c_int) -> f32; - pub fn __rintf(__x: f32) -> f32; - pub fn __nextafterf(__x: f32, __y: f32) -> f32; - pub fn __nexttowardf(__x: f32, __y: u128) -> f32; - pub fn __remainderf(__x: f32, __y: f32) -> f32; - pub fn __scalbnf(__x: f32, __n: ::core::ffi::c_int) -> f32; - pub fn __ilogbf(__x: f32) -> ::core::ffi::c_int; - pub fn __scalblnf(__x: f32, __n: ::core::ffi::c_long) -> f32; - pub fn __nearbyintf(__x: f32) -> f32; - pub fn __roundf(__x: f32) -> f32; - pub fn __truncf(__x: f32) -> f32; - pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::core::ffi::c_int) -> f32; - pub fn __lrintf(__x: f32) -> ::core::ffi::c_long; - pub fn __llrintf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __lroundf(__x: f32) -> ::core::ffi::c_long; - pub fn __llroundf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __fdimf(__x: f32, __y: f32) -> f32; - pub fn __fmaxf(__x: f32, __y: f32) -> f32; - pub fn __fminf(__x: f32, __y: f32) -> f32; - pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32; - pub fn __scalbf(__x: f32, __n: f32) -> f32; - pub fn __acosl(__x: u128) -> u128; - pub fn __asinl(__x: u128) -> u128; - pub fn __atanl(__x: u128) -> u128; - pub fn __atan2l(__y: u128, __x: u128) -> u128; - pub fn __cosl(__x: u128) -> u128; - pub fn __sinl(__x: u128) -> u128; - pub fn __tanl(__x: u128) -> u128; - pub fn __coshl(__x: u128) -> u128; - pub fn __sinhl(__x: u128) -> u128; - pub fn __tanhl(__x: u128) -> u128; - pub fn __acoshl(__x: u128) -> u128; - pub fn __asinhl(__x: u128) -> u128; - pub fn __atanhl(__x: u128) -> u128; - pub fn __expl(__x: u128) -> u128; - pub fn __frexpl(__x: u128, __exponent: *mut ::core::ffi::c_int) -> u128; - pub fn __ldexpl(__x: u128, __exponent: ::core::ffi::c_int) -> u128; - pub fn __logl(__x: u128) -> u128; - pub fn __log10l(__x: u128) -> u128; - pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128; - pub fn __expm1l(__x: u128) -> u128; - pub fn __log1pl(__x: u128) -> u128; - pub fn __logbl(__x: u128) -> u128; - pub fn __exp2l(__x: u128) -> u128; - pub fn __log2l(__x: u128) -> u128; - pub fn __powl(__x: u128, __y: u128) -> u128; - pub fn __sqrtl(__x: u128) -> u128; - pub fn __hypotl(__x: u128, __y: u128) -> u128; - pub fn __cbrtl(__x: u128) -> u128; - pub fn __ceill(__x: u128) -> u128; - pub fn __fabsl(__x: u128) -> u128; - pub fn __floorl(__x: u128) -> u128; - pub fn __fmodl(__x: u128, __y: u128) -> u128; - pub fn __dreml(__x: u128, __y: u128) -> u128; - pub fn __significandl(__x: u128) -> u128; - pub fn __copysignl(__x: u128, __y: u128) -> u128; - pub fn __nanl(__tagb: *const ::core::ffi::c_char) -> u128; - pub fn __j0l(arg1: u128) -> u128; - pub fn __j1l(arg1: u128) -> u128; - pub fn __jnl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __y0l(arg1: u128) -> u128; - pub fn __y1l(arg1: u128) -> u128; - pub fn __ynl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __erfl(arg1: u128) -> u128; - pub fn __erfcl(arg1: u128) -> u128; - pub fn __lgammal(arg1: u128) -> u128; - pub fn __tgammal(arg1: u128) -> u128; - pub fn __gammal(arg1: u128) -> u128; - pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::core::ffi::c_int) -> u128; - pub fn __rintl(__x: u128) -> u128; - pub fn __nextafterl(__x: u128, __y: u128) -> u128; - pub fn __nexttowardl(__x: u128, __y: u128) -> u128; - pub fn __remainderl(__x: u128, __y: u128) -> u128; - pub fn __scalbnl(__x: u128, __n: ::core::ffi::c_int) -> u128; - pub fn __ilogbl(__x: u128) -> ::core::ffi::c_int; - pub fn __scalblnl(__x: u128, __n: ::core::ffi::c_long) -> u128; - pub fn __nearbyintl(__x: u128) -> u128; - pub fn __roundl(__x: u128) -> u128; - pub fn __truncl(__x: u128) -> u128; - pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::core::ffi::c_int) -> u128; - pub fn __lrintl(__x: u128) -> ::core::ffi::c_long; - pub fn __llrintl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __lroundl(__x: u128) -> ::core::ffi::c_long; - pub fn __llroundl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __fdiml(__x: u128, __y: u128) -> u128; - pub fn __fmaxl(__x: u128, __y: u128) -> u128; - pub fn __fminl(__x: u128, __y: u128) -> u128; - pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128; - pub fn __scalbl(__x: u128, __n: u128) -> u128; pub fn strlcat( dst: *mut ::core::ffi::c_char, src: *const ::core::ffi::c_char, @@ -34853,6 +32115,11 @@ extern "C" { pub fn initStringInfo(str_: StringInfo); pub fn resetStringInfo(str_: StringInfo); pub fn appendStringInfo(str_: StringInfo, fmt: *const ::core::ffi::c_char, ...); + pub fn appendStringInfoVA( + str_: StringInfo, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn appendStringInfoString(str_: StringInfo, s: *const ::core::ffi::c_char); pub fn appendStringInfoChar(str_: StringInfo, ch: ::core::ffi::c_char); pub fn appendStringInfoSpaces(str_: StringInfo, count: ::core::ffi::c_int); @@ -35017,6 +32284,12 @@ extern "C" { pub fn pnstrdup(in_: *const ::core::ffi::c_char, len: Size) -> *mut ::core::ffi::c_char; pub fn pchomp(in_: *const ::core::ffi::c_char) -> *mut ::core::ffi::c_char; pub fn psprintf(fmt: *const ::core::ffi::c_char, ...) -> *mut ::core::ffi::c_char; + pub fn pvsnprintf( + buf: *mut ::core::ffi::c_char, + len: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> usize; pub static mut no_such_variable: ::core::ffi::c_int; pub fn outNode(str_: *mut StringInfoData, obj: *const ::core::ffi::c_void); pub fn outToken(str_: *mut StringInfoData, s: *const ::core::ffi::c_char); @@ -37458,10 +34731,6 @@ extern "C" { val: *const int64, ); pub fn pgstat_progress_end_command(); - pub fn bindresvport6( - __sockfd: ::core::ffi::c_int, - __sock_in: *mut sockaddr_in6, - ) -> ::core::ffi::c_int; pub static mut Db_user_namespace: bool; pub static mut MyBackendId: BackendId; pub static mut ParallelLeaderBackendId: BackendId; @@ -38149,6 +35418,12 @@ extern "C" { oidcol: AttrNumber, objectId: Oid, ) -> HeapTuple; + pub fn get_catalog_object_by_oid_extended( + catalog: Relation, + oidcol: AttrNumber, + objectId: Oid, + locktup: bool, + ) -> HeapTuple; pub fn getObjectDescription( object: *const ObjectAddress, missing_ok: bool, @@ -38272,6 +35547,13 @@ extern "C" { nforks: ::core::ffi::c_int, nblocks: *mut BlockNumber, ); + pub fn smgrtruncate2( + reln: SMgrRelation, + forknum: *mut ForkNumber::Type, + nforks: ::core::ffi::c_int, + old_nblocks: *mut BlockNumber, + nblocks: *mut BlockNumber, + ); pub fn smgrimmedsync(reln: SMgrRelation, forknum: ForkNumber::Type); pub fn AtEOXact_SMgr(); pub fn ProcessBarrierSmgrRelease() -> bool; @@ -42510,6 +39792,7 @@ extern "C" { pub fn pg_char_to_encoding(name: *const ::core::ffi::c_char) -> ::core::ffi::c_int; pub fn pg_encoding_to_char(encoding: ::core::ffi::c_int) -> *const ::core::ffi::c_char; pub fn pg_valid_server_encoding_id(encoding: ::core::ffi::c_int) -> ::core::ffi::c_int; + pub fn pg_encoding_set_invalid(encoding: ::core::ffi::c_int, dst: *mut ::core::ffi::c_char); pub fn pg_encoding_mblen( encoding: ::core::ffi::c_int, mbstr: *const ::core::ffi::c_char, @@ -45144,6 +42427,13 @@ extern "C" { targetTypmod: int32, constructName: *const ::core::ffi::c_char, ) -> *mut Node; + pub fn coerce_null_to_domain( + typid: Oid, + typmod: int32, + collation: Oid, + typlen: ::core::ffi::c_int, + typbyval: bool, + ) -> *mut Node; pub fn parser_coercion_errposition( pstate: *mut ParseState, coerce_location: ::core::ffi::c_int, @@ -50109,6 +47399,7 @@ extern "C" { ) -> *mut CatCList; pub fn ReleaseCatCacheList(list: *mut CatCList); pub fn ResetCatalogCaches(); + pub fn ResetCatalogCachesExt(debug_discard: bool); pub fn CatalogCacheFlushCatalog(catId: Oid); pub fn CatCacheInvalidate(cache: *mut CatCache, hashValue: uint32); pub fn PrepareToInvalidateCacheTuple( @@ -55441,6 +52732,14 @@ pub const XmlExprOp_IS_DOCUMENT: u32 = 7; pub const XmlOptionType_XMLOPTION_DOCUMENT: u32 = 0; #[deprecated(since = "0.12.0", note = "you want pg_sys::XmlOptionType::XMLOPTION_CONTENT")] pub const XmlOptionType_XMLOPTION_CONTENT: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_TID")] +pub const __pid_type_F_OWNER_TID: u32 = 0; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PID")] +pub const __pid_type_F_OWNER_PID: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PGRP")] +pub const __pid_type_F_OWNER_PGRP: u32 = 2; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_GID")] +pub const __pid_type_F_OWNER_GID: u32 = 2; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_STREAM")] pub const __socket_type_SOCK_STREAM: u32 = 1; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_DGRAM")] diff --git a/pgrx-pg-sys/src/include/pg17.rs b/pgrx-pg-sys/src/include/pg17.rs index 3efcd104a2..76bc949d4a 100644 --- a/pgrx-pg-sys/src/include/pg17.rs +++ b/pgrx-pg-sys/src/include/pg17.rs @@ -22,28 +22,51 @@ 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]; + fn extract_bit(byte: u8, index: usize) -> bool { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } #[inline] - pub fn set_bit(&mut self, index: usize, val: bool) { + pub fn get_bit(&self, index: usize) -> 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 byte = self.storage.as_ref()[byte_index]; + Self::extract_bit(byte, index) + } + #[inline] + pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize); + Self::extract_bit(byte, index) + } + #[inline] + fn change_bit(byte: u8, index: usize, val: bool) -> u8 { let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { - *byte |= mask; + byte | mask } else { - *byte &= !mask; + byte & !mask } } #[inline] + pub fn set_bit(&mut self, index: usize, val: bool) { + debug_assert!(index / 8 < self.storage.as_ref().len()); + let byte_index = index / 8; + let byte = &mut self.storage.as_mut()[byte_index]; + *byte = Self::change_bit(*byte, index, val); + } + #[inline] + pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) { + debug_assert!(index / 8 < core::mem::size_of::()); + let byte_index = index / 8; + let byte = + (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize); + *byte = Self::change_bit(*byte, index, val); + } + #[inline] pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -59,6 +82,21 @@ where val } #[inline] + pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + let mut val = 0; + for i in 0..(bit_width as usize) { + if Self::raw_get_bit(this, i + bit_offset) { + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + val |= 1 << index; + } + } + val + } + #[inline] pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { debug_assert!(bit_width <= 64); debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); @@ -70,6 +108,18 @@ where self.set_bit(index + bit_offset, val_bit_is_set); } } + #[inline] + pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) { + debug_assert!(bit_width <= 64); + debug_assert!(bit_offset / 8 < core::mem::size_of::()); + debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::()); + for i in 0..(bit_width as usize) { + let mask = 1 << i; + let val_bit_is_set = val & mask == mask; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; + Self::raw_set_bit(this, index + bit_offset, val_bit_is_set); + } + } } #[repr(C)] #[derive(Default)] @@ -126,53 +176,25 @@ pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; pub const DEF_PGPORT: u32 = 28817; -#[allow(unsafe_code)] -pub const DEF_PGPORT_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"28817\0") }; -#[allow(unsafe_code)] -pub const DLSUFFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b".so\0") }; -#[allow(unsafe_code)] -pub const INT64_MODIFIER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"l\0") }; +pub const DEF_PGPORT_STR: &::core::ffi::CStr = c"28817"; +pub const DLSUFFIX: &::core::ffi::CStr = c".so"; +pub const INT64_MODIFIER: &::core::ffi::CStr = c"l"; pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; -#[allow(unsafe_code)] -pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pgsql-bugs@lists.postgresql.org\0") -}; -#[allow(unsafe_code)] -pub const PACKAGE_NAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL 17.2\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_TARNAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_URL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"https://www.postgresql.org/\0") }; -#[allow(unsafe_code)] -pub const PACKAGE_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"17.2\0") }; -#[allow(unsafe_code)] -pub const PG_KRB_SRVNAM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres\0") }; -#[allow(unsafe_code)] -pub const PG_MAJORVERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"17\0") }; +pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = c"pgsql-bugs@lists.postgresql.org"; +pub const PACKAGE_NAME: &::core::ffi::CStr = c"PostgreSQL"; +pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 17.4"; +pub const PACKAGE_TARNAME: &::core::ffi::CStr = c"postgresql"; +pub const PACKAGE_URL: &::core::ffi::CStr = c"https://www.postgresql.org/"; +pub const PACKAGE_VERSION: &::core::ffi::CStr = c"17.4"; +pub const PG_KRB_SRVNAM: &::core::ffi::CStr = c"postgres"; +pub const PG_MAJORVERSION: &::core::ffi::CStr = c"17"; pub const PG_MAJORVERSION_NUM: u32 = 17; -pub const PG_MINORVERSION_NUM: u32 = 2; +pub const PG_MINORVERSION_NUM: u32 = 4; pub const PG_USE_STDBOOL: u32 = 1; -#[allow(unsafe_code)] -pub const PG_VERSION: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"17.2\0") }; -pub const PG_VERSION_NUM: u32 = 170002; -#[allow(unsafe_code)] -pub const PG_VERSION_STR: &::core::ffi::CStr = unsafe { - :: core :: ffi :: CStr :: from_bytes_with_nul_unchecked (b"PostgreSQL 17.2 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0") -}; +pub const PG_VERSION: &::core::ffi::CStr = c"17.4"; +pub const PG_VERSION_NUM: u32 = 170004; +pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 17.4 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -190,9 +212,7 @@ pub const XLOG_BLCKSZ: u32 = 8192; pub const DEFAULT_XLOG_SEG_SIZE: u32 = 16777216; pub const NAMEDATALEN: u32 = 64; pub const FUNC_MAX_ARGS: u32 = 100; -#[allow(unsafe_code)] -pub const FMGR_ABI_EXTRA: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const FMGR_ABI_EXTRA: &::core::ffi::CStr = c"PostgreSQL"; pub const INDEX_MAX_KEYS: u32 = 32; pub const PARTITION_MAX_KEYS: u32 = 32; pub const USE_FLOAT8_BYVAL: u32 = 1; @@ -205,352 +225,16 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -#[allow(unsafe_code)] -pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -#[allow(unsafe_code)] -pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"PostgreSQL\0") }; +pub const DEFAULT_PGSOCKET_DIR: &::core::ffi::CStr = c"/tmp"; +pub const DEFAULT_EVENT_SOURCE: &::core::ffi::CStr = c"PostgreSQL"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const PG_IO_ALIGN_SIZE: u32 = 4096; pub const TRACE_SORT: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -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 = 35; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -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_C2X: 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_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: 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 _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; -#[allow(unsafe_code)] -pub const P_tmpdir: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/tmp\0") }; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -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 __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 __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -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 __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 __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 __PTHREAD_MUTEX_HAVE_PREV: 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 EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; -pub const __bool_true_false_are_defined: u32 = 1; -pub const true_: u32 = 1; -pub const false_: u32 = 0; -#[allow(unsafe_code)] -pub const INT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%ld\0") }; -#[allow(unsafe_code)] -pub const UINT64_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%lu\0") }; +pub const SIG_ATOMIC_WIDTH: u32 = 32; +pub const INT64_FORMAT: &::core::ffi::CStr = c"%ld"; +pub const UINT64_FORMAT: &::core::ffi::CStr = c"%lu"; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; pub const PG_UINT8_MAX: u32 = 255; @@ -567,39 +251,16 @@ pub const STATUS_OK: u32 = 0; pub const STATUS_ERROR: i32 = -1; pub const STATUS_EOF: i32 = -2; pub const PG_BINARY: u32 = 0; -#[allow(unsafe_code)] -pub const PG_BINARY_A: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"a\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_R: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"r\0") }; -#[allow(unsafe_code)] -pub const PG_BINARY_W: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"w\0") }; +pub const PG_BINARY_A: &::core::ffi::CStr = c"a"; +pub const PG_BINARY_R: &::core::ffi::CStr = c"r"; +pub const PG_BINARY_W: &::core::ffi::CStr = c"w"; pub const PGINVALID_SOCKET: i32 = -1; -#[allow(unsafe_code)] -pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgres (PostgreSQL) 17.2\n\0") }; -#[allow(unsafe_code)] -pub const EXE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"\0") }; -#[allow(unsafe_code)] -pub const DEVNULL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/dev/null\0") }; +pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 17.4\n"; +pub const EXE: &::core::ffi::CStr = c""; +pub const DEVNULL: &::core::ffi::CStr = c"/dev/null"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -613,7 +274,6 @@ pub const NOTICE: u32 = 18; pub const WARNING: u32 = 19; pub const PGWARNING: u32 = 19; pub const WARNING_CLIENT_ONLY: u32 = 20; -pub const ERROR: u32 = 21; pub const PGERROR: u32 = 21; pub const FATAL: u32 = 22; pub const PANIC: u32 = 23; @@ -675,129 +335,6 @@ pub const LP_DEAD: u32 = 3; pub const SpecTokenOffsetNumber: u32 = 65534; pub const MovedPartitionsOffsetNumber: u32 = 65533; pub const FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; pub const FirstGenbkiObjectId: u32 = 10000; pub const FirstUnpinnedObjectId: u32 = 12000; @@ -1130,27 +667,10 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -#[allow(unsafe_code)] -pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"Pg_magic_func\0") }; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &::core::ffi::CStr = c"Pg_magic_func"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const PARAM_FLAG_CONST: u32 = 1; @@ -1202,100 +722,16 @@ pub const INDEX_VAR: i32 = -3; pub const ROWID_VAR: i32 = -4; pub const PRS2_OLD_VARNO: u32 = 1; pub const PRS2_NEW_VARNO: u32 = 2; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_dynshmem\0") }; -#[allow(unsafe_code)] -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"mmap.\0") }; +pub const PG_DYNSHMEM_DIR: &::core::ffi::CStr = c"pg_dynshmem"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &::core::ffi::CStr = c"mmap."; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const SIZEOF_DSA_POINTER: u32 = 8; -#[allow(unsafe_code)] -pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"%016lx\0") }; +pub const DSA_POINTER_FORMAT: &::core::ffi::CStr = c"%016lx"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1317,125 +753,10 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; pub const NO_MAX_DSIZE: i32 = -1; -pub const __iovec_defined: u32 = 1; -pub const __IOV_MAX: u32 = 1024; -pub const UIO_MAXIOV: u32 = 1024; -pub const _POSIX_VERSION: u32 = 200809; -pub const __POSIX2_THIS_VERSION: u32 = 200809; -pub const _POSIX2_VERSION: u32 = 200809; -pub const _POSIX2_C_VERSION: u32 = 200809; -pub const _POSIX2_C_BIND: u32 = 200809; -pub const _POSIX2_C_DEV: u32 = 200809; -pub const _POSIX2_SW_DEV: u32 = 200809; -pub const _POSIX2_LOCALEDEF: u32 = 200809; -pub const _XOPEN_VERSION: u32 = 700; -pub const _XOPEN_XCU_VERSION: u32 = 4; -pub const _XOPEN_XPG2: u32 = 1; -pub const _XOPEN_XPG3: u32 = 1; -pub const _XOPEN_XPG4: u32 = 1; -pub const _XOPEN_UNIX: u32 = 1; -pub const _XOPEN_ENH_I18N: u32 = 1; -pub const _XOPEN_LEGACY: u32 = 1; -pub const _POSIX_JOB_CONTROL: u32 = 1; -pub const _POSIX_SAVED_IDS: u32 = 1; -pub const _POSIX_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_SYNCHRONIZED_IO: u32 = 200809; -pub const _POSIX_FSYNC: u32 = 200809; -pub const _POSIX_MAPPED_FILES: u32 = 200809; -pub const _POSIX_MEMLOCK: u32 = 200809; -pub const _POSIX_MEMLOCK_RANGE: u32 = 200809; -pub const _POSIX_MEMORY_PROTECTION: u32 = 200809; -pub const _POSIX_CHOWN_RESTRICTED: u32 = 0; -pub const _POSIX_VDISABLE: u8 = 0u8; -pub const _POSIX_NO_TRUNC: u32 = 1; -pub const _XOPEN_REALTIME: u32 = 1; -pub const _XOPEN_REALTIME_THREADS: u32 = 1; -pub const _XOPEN_SHM: u32 = 1; -pub const _POSIX_THREADS: u32 = 200809; -pub const _POSIX_REENTRANT_FUNCTIONS: u32 = 1; -pub const _POSIX_THREAD_SAFE_FUNCTIONS: u32 = 200809; -pub const _POSIX_THREAD_PRIORITY_SCHEDULING: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKSIZE: u32 = 200809; -pub const _POSIX_THREAD_ATTR_STACKADDR: u32 = 200809; -pub const _POSIX_THREAD_PRIO_INHERIT: u32 = 200809; -pub const _POSIX_THREAD_PRIO_PROTECT: u32 = 200809; -pub const _POSIX_THREAD_ROBUST_PRIO_INHERIT: u32 = 200809; -pub const _POSIX_THREAD_ROBUST_PRIO_PROTECT: i32 = -1; -pub const _POSIX_SEMAPHORES: u32 = 200809; -pub const _POSIX_REALTIME_SIGNALS: u32 = 200809; -pub const _POSIX_ASYNCHRONOUS_IO: u32 = 200809; -pub const _POSIX_ASYNC_IO: u32 = 1; -pub const _LFS_ASYNCHRONOUS_IO: u32 = 1; -pub const _POSIX_PRIORITIZED_IO: u32 = 200809; -pub const _LFS64_ASYNCHRONOUS_IO: u32 = 1; -pub const _LFS_LARGEFILE: u32 = 1; -pub const _LFS64_LARGEFILE: u32 = 1; -pub const _LFS64_STDIO: u32 = 1; -pub const _POSIX_SHARED_MEMORY_OBJECTS: u32 = 200809; -pub const _POSIX_CPUTIME: u32 = 0; -pub const _POSIX_THREAD_CPUTIME: u32 = 0; -pub const _POSIX_REGEXP: u32 = 1; -pub const _POSIX_READER_WRITER_LOCKS: u32 = 200809; -pub const _POSIX_SHELL: u32 = 1; -pub const _POSIX_TIMEOUTS: u32 = 200809; -pub const _POSIX_SPIN_LOCKS: u32 = 200809; -pub const _POSIX_SPAWN: u32 = 200809; -pub const _POSIX_TIMERS: u32 = 200809; -pub const _POSIX_BARRIERS: u32 = 200809; -pub const _POSIX_MESSAGE_PASSING: u32 = 200809; -pub const _POSIX_THREAD_PROCESS_SHARED: u32 = 200809; -pub const _POSIX_MONOTONIC_CLOCK: u32 = 0; -pub const _POSIX_CLOCK_SELECTION: u32 = 200809; -pub const _POSIX_ADVISORY_INFO: u32 = 200809; -pub const _POSIX_IPV6: u32 = 200809; -pub const _POSIX_RAW_SOCKETS: u32 = 200809; -pub const _POSIX2_CHAR_TERM: u32 = 200809; -pub const _POSIX_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_THREAD_SPORADIC_SERVER: i32 = -1; -pub const _POSIX_TRACE: i32 = -1; -pub const _POSIX_TRACE_EVENT_FILTER: i32 = -1; -pub const _POSIX_TRACE_INHERIT: i32 = -1; -pub const _POSIX_TRACE_LOG: i32 = -1; -pub const _POSIX_TYPED_MEMORY_OBJECTS: i32 = -1; -pub const _POSIX_V7_LPBIG_OFFBIG: i32 = -1; -pub const _POSIX_V6_LPBIG_OFFBIG: i32 = -1; -pub const _XBS5_LPBIG_OFFBIG: i32 = -1; -pub const _POSIX_V7_LP64_OFF64: u32 = 1; -pub const _POSIX_V6_LP64_OFF64: u32 = 1; -pub const _XBS5_LP64_OFF64: u32 = 1; -#[allow(unsafe_code)] -pub const __ILP32_OFF32_CFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m32\0") }; -#[allow(unsafe_code)] -pub const __ILP32_OFF32_LDFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m32\0") }; -#[allow(unsafe_code)] -pub const __ILP32_OFFBIG_CFLAGS: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked( - b"-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\0", - ) -}; -#[allow(unsafe_code)] -pub const __ILP32_OFFBIG_LDFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m32\0") }; -#[allow(unsafe_code)] -pub const __LP64_OFF64_CFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m64\0") }; -#[allow(unsafe_code)] -pub const __LP64_OFF64_LDFLAGS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-m64\0") }; -pub const STDIN_FILENO: u32 = 0; -pub const STDOUT_FILENO: u32 = 1; -pub const STDERR_FILENO: u32 = 2; -pub const L_SET: u32 = 0; -pub const L_INCR: u32 = 1; -pub const L_XTND: u32 = 2; -pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; -pub const MAXNAMLEN: u32 = 255; pub const IO_DIRECT_DATA: u32 = 1; pub const IO_DIRECT_WAL: u32 = 2; pub const IO_DIRECT_WAL_INIT: u32 = 4; -pub const PG_O_DIRECT: u32 = 0; +pub const PG_O_DIRECT: u32 = 16384; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const MAX_TIMESTAMP_PRECISION: u32 = 6; pub const MAX_INTERVAL_PRECISION: u32 = 6; @@ -1463,9 +784,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -#[allow(unsafe_code)] -pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_internal.init\0") }; +pub const RELCACHE_INIT_FILENAME: &::core::ffi::CStr = c"pg_internal.init"; pub const SK_ISNULL: u32 = 1; pub const SK_UNARY: u32 = 2; pub const SK_ROW_HEADER: u32 = 4; @@ -1661,40 +980,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const NSIG: u32 = 65; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const __sigstack_defined: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1720,423 +1009,8 @@ pub const INIT_PG_OVERRIDE_ALLOW_CONNS: u32 = 2; pub const INIT_PG_OVERRIDE_ROLE_LOGIN: u32 = 4; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -#[allow(unsafe_code)] -pub const VALID_XFN_CHARS: &::core::ffi::CStr = unsafe { - ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"0123456789ABCDEF.history.backup.partial\0") -}; +pub const VALID_XFN_CHARS: &::core::ffi::CStr = c"0123456789ABCDEF.history.backup.partial"; pub const PGSTAT_NUM_PROGRESS_PARAM: u32 = 20; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -pub const IN_LOOPBACKNET: u32 = 127; -pub const INET_ADDRSTRLEN: u32 = 16; -pub const INET6_ADDRSTRLEN: u32 = 46; -#[allow(unsafe_code)] -pub const _PATH_HEQUIV: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts.equiv\0") }; -#[allow(unsafe_code)] -pub const _PATH_HOSTS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/hosts\0") }; -#[allow(unsafe_code)] -pub const _PATH_NETWORKS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/networks\0") }; -#[allow(unsafe_code)] -pub const _PATH_NSSWITCH_CONF: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/nsswitch.conf\0") }; -#[allow(unsafe_code)] -pub const _PATH_PROTOCOLS: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/protocols\0") }; -#[allow(unsafe_code)] -pub const _PATH_SERVICES: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"/etc/services\0") }; -pub const HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; pub const PqMsg_Bind: u8 = 66u8; pub const PqMsg_Close: u8 = 67u8; pub const PqMsg_Describe: u8 = 68u8; @@ -2191,9 +1065,7 @@ pub const AUTH_REQ_SASL_CONT: u32 = 11; pub const AUTH_REQ_SASL_FIN: u32 = 12; pub const AUTH_REQ_MAX: u32 = 12; pub const MAX_STARTUP_PACKET_LENGTH: u32 = 10000; -#[allow(unsafe_code)] -pub const PG_ALPN_PROTOCOL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql\0") }; +pub const PG_ALPN_PROTOCOL: &::core::ffi::CStr = c"postgresql"; pub const PG_WAIT_LWLOCK: u32 = 16777216; pub const PG_WAIT_LOCK: u32 = 50331648; pub const PG_WAIT_BUFFERPIN: u32 = 67108864; @@ -2204,18 +1076,10 @@ pub const PG_WAIT_IPC: u32 = 134217728; pub const PG_WAIT_TIMEOUT: u32 = 150994944; pub const PG_WAIT_IO: u32 = 167772160; pub const PG_WAIT_INJECTIONPOINT: u32 = 184549376; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/pgstat.stat\0") }; -#[allow(unsafe_code)] -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat/pgstat.tmp\0") }; -#[allow(unsafe_code)] -pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_stat_tmp\0") }; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &::core::ffi::CStr = c"pg_stat"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &::core::ffi::CStr = c"pg_stat/pgstat.stat"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &::core::ffi::CStr = c"pg_stat/pgstat.tmp"; +pub const PG_STAT_TMP_DIR: &::core::ffi::CStr = c"pg_stat_tmp"; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638956; pub const CHECKPOINT_IS_SHUTDOWN: u32 = 1; pub const CHECKPOINT_END_OF_RECOVERY: u32 = 2; @@ -2228,27 +1092,13 @@ pub const CHECKPOINT_CAUSE_XLOG: u32 = 128; pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -#[allow(unsafe_code)] -pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"recovery.signal\0") }; -#[allow(unsafe_code)] -pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"standby.signal\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label\0") }; -#[allow(unsafe_code)] -pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"backup_label.old\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map\0") }; -#[allow(unsafe_code)] -pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tablespace_map.old\0") }; -#[allow(unsafe_code)] -pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"promote\0") }; +pub const RECOVERY_SIGNAL_FILE: &::core::ffi::CStr = c"recovery.signal"; +pub const STANDBY_SIGNAL_FILE: &::core::ffi::CStr = c"standby.signal"; +pub const BACKUP_LABEL_FILE: &::core::ffi::CStr = c"backup_label"; +pub const BACKUP_LABEL_OLD: &::core::ffi::CStr = c"backup_label.old"; +pub const TABLESPACE_MAP: &::core::ffi::CStr = c"tablespace_map"; +pub const TABLESPACE_MAP_OLD: &::core::ffi::CStr = c"tablespace_map.old"; +pub const PROMOTE_SIGNAL_FILE: &::core::ffi::CStr = c"promote"; pub const RM_MAX_ID: u32 = 255; pub const RM_MIN_CUSTOM_ID: u32 = 128; pub const RM_MAX_CUSTOM_ID: u32 = 255; @@ -2480,9 +1330,7 @@ pub const READ_STREAM_DEFAULT: u32 = 0; pub const READ_STREAM_MAINTENANCE: u32 = 1; pub const READ_STREAM_SEQUENTIAL: u32 = 2; pub const READ_STREAM_FULL: u32 = 4; -#[allow(unsafe_code)] -pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"heap\0") }; +pub const DEFAULT_TABLE_ACCESS_METHOD: &::core::ffi::CStr = c"heap"; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; pub const TABLE_INSERT_NO_LOGICAL: u32 = 8; @@ -2537,12 +1385,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -#[allow(unsafe_code)] -pub const XLOGDIR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"pg_wal\0") }; -#[allow(unsafe_code)] -pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"global/pg_control\0") }; +pub const XLOGDIR: &::core::ffi::CStr = c"pg_wal"; +pub const XLOG_CONTROL_FILE: &::core::ffi::CStr = c"global/pg_control"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const PG_CONTROL_VERSION: u32 = 1700; @@ -2570,9 +1414,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -#[allow(unsafe_code)] -pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"btree\0") }; +pub const DEFAULT_INDEX_TYPE: &::core::ffi::CStr = c"btree"; pub const REINDEXOPT_VERBOSE: u32 = 1; pub const REINDEXOPT_REPORT_PROGRESS: u32 = 2; pub const REINDEXOPT_MISSING_OK: u32 = 4; @@ -3020,9 +1862,7 @@ pub const ACL_CONNECT_CHR: u8 = 99u8; pub const ACL_SET_CHR: u8 = 115u8; pub const ACL_ALTER_SYSTEM_CHR: u8 = 65u8; pub const ACL_MAINTAIN_CHR: u8 = 109u8; -#[allow(unsafe_code)] -pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"arwdDxtXUCTcsAm\0") }; +pub const ACL_ALL_RIGHTS_STR: &::core::ffi::CStr = c"arwdDxtXUCTcsAm"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 16511; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -3243,9 +2083,7 @@ pub const TRIGGER_DISABLED: u8 = 68u8; pub const RI_TRIGGER_PK: u32 = 1; pub const RI_TRIGGER_FK: u32 = 2; pub const RI_TRIGGER_NONE: u32 = 0; -#[allow(unsafe_code)] -pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"postgresql.auto.conf\0") }; +pub const PG_AUTOCONF_FILENAME: &::core::ffi::CStr = c"postgresql.auto.conf"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -3311,6 +2149,7 @@ pub const PROC_XMIN_FLAGS: u32 = 6; pub const FP_LOCK_SLOTS_PER_BACKEND: u32 = 16; pub const DELAY_CHKPT_START: u32 = 1; pub const DELAY_CHKPT_COMPLETE: u32 = 2; +pub const NUM_SPECIAL_WORKER_PROCS: u32 = 2; pub const NUM_AUXILIARY_PROCS: u32 = 6; pub const StatisticRelationId: Oid = Oid(2619); pub const StatisticRelidAttnumInhIndexId: u32 = 2696; @@ -3527,12 +2366,8 @@ pub const PIPE_PROTO_IS_LAST: u32 = 1; pub const PIPE_PROTO_DEST_STDERR: u32 = 16; pub const PIPE_PROTO_DEST_CSVLOG: u32 = 32; pub const PIPE_PROTO_DEST_JSONLOG: u32 = 64; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles\0") }; -#[allow(unsafe_code)] -pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current_logfiles.tmp\0") }; +pub const LOG_METAINFO_DATAFILE: &::core::ffi::CStr = c"current_logfiles"; +pub const LOG_METAINFO_DATAFILE_TMP: &::core::ffi::CStr = c"current_logfiles.tmp"; pub const RBTXN_HAS_CATALOG_CHANGES: u32 = 1; pub const RBTXN_IS_SUBXACT: u32 = 2; pub const RBTXN_IS_SERIALIZED: u32 = 4; @@ -3598,87 +2433,33 @@ pub const FORMAT_TYPE_ALLOW_INVALID: u32 = 2; pub const FORMAT_TYPE_FORCE_QUALIFY: u32 = 4; pub const FORMAT_TYPE_INVALID_AS_NULL: u32 = 8; pub const MAX_TIME_PRECISION: u32 = 6; -#[allow(unsafe_code)] -pub const DAGO: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ago\0") }; -#[allow(unsafe_code)] -pub const DCURRENT: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"current\0") }; -#[allow(unsafe_code)] -pub const EPOCH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"epoch\0") }; -#[allow(unsafe_code)] -pub const INVALID: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"invalid\0") }; -#[allow(unsafe_code)] -pub const EARLY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"-infinity\0") }; -#[allow(unsafe_code)] -pub const LATE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"infinity\0") }; -#[allow(unsafe_code)] -pub const NOW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"now\0") }; -#[allow(unsafe_code)] -pub const TODAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"today\0") }; -#[allow(unsafe_code)] -pub const TOMORROW: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"tomorrow\0") }; -#[allow(unsafe_code)] -pub const YESTERDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"yesterday\0") }; -#[allow(unsafe_code)] -pub const ZULU: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"zulu\0") }; -#[allow(unsafe_code)] -pub const DMICROSEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"usecond\0") }; -#[allow(unsafe_code)] -pub const DMILLISEC: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"msecond\0") }; -#[allow(unsafe_code)] -pub const DSECOND: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"second\0") }; -#[allow(unsafe_code)] -pub const DMINUTE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"minute\0") }; -#[allow(unsafe_code)] -pub const DHOUR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"hour\0") }; -#[allow(unsafe_code)] -pub const DDAY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"day\0") }; -#[allow(unsafe_code)] -pub const DWEEK: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"week\0") }; -#[allow(unsafe_code)] -pub const DMONTH: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"month\0") }; -#[allow(unsafe_code)] -pub const DQUARTER: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"quarter\0") }; -#[allow(unsafe_code)] -pub const DYEAR: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"year\0") }; -#[allow(unsafe_code)] -pub const DDECADE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"decade\0") }; -#[allow(unsafe_code)] -pub const DCENTURY: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"century\0") }; -#[allow(unsafe_code)] -pub const DMILLENNIUM: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"millennium\0") }; -#[allow(unsafe_code)] -pub const DA_D: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"ad\0") }; -#[allow(unsafe_code)] -pub const DB_C: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"bc\0") }; -#[allow(unsafe_code)] -pub const DTIMEZONE: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"timezone\0") }; +pub const DAGO: &::core::ffi::CStr = c"ago"; +pub const DCURRENT: &::core::ffi::CStr = c"current"; +pub const EPOCH: &::core::ffi::CStr = c"epoch"; +pub const INVALID: &::core::ffi::CStr = c"invalid"; +pub const EARLY: &::core::ffi::CStr = c"-infinity"; +pub const LATE: &::core::ffi::CStr = c"infinity"; +pub const NOW: &::core::ffi::CStr = c"now"; +pub const TODAY: &::core::ffi::CStr = c"today"; +pub const TOMORROW: &::core::ffi::CStr = c"tomorrow"; +pub const YESTERDAY: &::core::ffi::CStr = c"yesterday"; +pub const ZULU: &::core::ffi::CStr = c"zulu"; +pub const DMICROSEC: &::core::ffi::CStr = c"usecond"; +pub const DMILLISEC: &::core::ffi::CStr = c"msecond"; +pub const DSECOND: &::core::ffi::CStr = c"second"; +pub const DMINUTE: &::core::ffi::CStr = c"minute"; +pub const DHOUR: &::core::ffi::CStr = c"hour"; +pub const DDAY: &::core::ffi::CStr = c"day"; +pub const DWEEK: &::core::ffi::CStr = c"week"; +pub const DMONTH: &::core::ffi::CStr = c"month"; +pub const DQUARTER: &::core::ffi::CStr = c"quarter"; +pub const DYEAR: &::core::ffi::CStr = c"year"; +pub const DDECADE: &::core::ffi::CStr = c"decade"; +pub const DCENTURY: &::core::ffi::CStr = c"century"; +pub const DMILLENNIUM: &::core::ffi::CStr = c"millennium"; +pub const DA_D: &::core::ffi::CStr = c"ad"; +pub const DB_C: &::core::ffi::CStr = c"bc"; +pub const DTIMEZONE: &::core::ffi::CStr = c"timezone"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -7135,9 +5916,7 @@ pub const SELFLAG_USED_DEFAULT: u32 = 1; pub const CATCACHE_MAXKEYS: u32 = 4; pub const CT_MAGIC: u32 = 1462113538; pub const CL_MAGIC: u32 = 1383485699; -#[allow(unsafe_code)] -pub const RANGE_EMPTY_LITERAL: &::core::ffi::CStr = - unsafe { ::core::ffi::CStr::from_bytes_with_nul_unchecked(b"empty\0") }; +pub const RANGE_EMPTY_LITERAL: &::core::ffi::CStr = c"empty"; pub const RANGE_EMPTY: u32 = 1; pub const RANGE_LB_INC: u32 = 2; pub const RANGE_UB_INC: u32 = 4; @@ -7158,137 +5937,15 @@ pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; pub const RANGESTRAT_EQ: u32 = 18; pub type pg_int64 = ::core::ffi::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::core::ffi::c_uchar; -pub type __u_short = ::core::ffi::c_ushort; -pub type __u_int = ::core::ffi::c_uint; -pub type __u_long = ::core::ffi::c_ulong; -pub type __int8_t = ::core::ffi::c_schar; -pub type __uint8_t = ::core::ffi::c_uchar; -pub type __int16_t = ::core::ffi::c_short; -pub type __uint16_t = ::core::ffi::c_ushort; -pub type __int32_t = ::core::ffi::c_int; -pub type __uint32_t = ::core::ffi::c_uint; -pub type __int64_t = ::core::ffi::c_long; -pub type __uint64_t = ::core::ffi::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::core::ffi::c_long; -pub type __u_quad_t = ::core::ffi::c_ulong; -pub type __intmax_t = ::core::ffi::c_long; -pub type __uintmax_t = ::core::ffi::c_ulong; -pub type __dev_t = ::core::ffi::c_ulong; pub type __uid_t = ::core::ffi::c_uint; pub type __gid_t = ::core::ffi::c_uint; pub type __ino_t = ::core::ffi::c_ulong; -pub type __ino64_t = ::core::ffi::c_ulong; pub type __mode_t = ::core::ffi::c_uint; -pub type __nlink_t = ::core::ffi::c_ulong; pub type __off_t = ::core::ffi::c_long; pub type __off64_t = ::core::ffi::c_long; pub type __pid_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::core::ffi::c_int; 2usize], -} -pub type __clock_t = ::core::ffi::c_long; -pub type __rlim_t = ::core::ffi::c_ulong; -pub type __rlim64_t = ::core::ffi::c_ulong; -pub type __id_t = ::core::ffi::c_uint; -pub type __time_t = ::core::ffi::c_long; -pub type __useconds_t = ::core::ffi::c_uint; -pub type __suseconds_t = ::core::ffi::c_long; -pub type __suseconds64_t = ::core::ffi::c_long; -pub type __daddr_t = ::core::ffi::c_int; -pub type __key_t = ::core::ffi::c_int; -pub type __clockid_t = ::core::ffi::c_int; -pub type __timer_t = *mut ::core::ffi::c_void; -pub type __blksize_t = ::core::ffi::c_long; -pub type __blkcnt_t = ::core::ffi::c_long; -pub type __blkcnt64_t = ::core::ffi::c_long; -pub type __fsblkcnt_t = ::core::ffi::c_ulong; -pub type __fsblkcnt64_t = ::core::ffi::c_ulong; -pub type __fsfilcnt_t = ::core::ffi::c_ulong; -pub type __fsfilcnt64_t = ::core::ffi::c_ulong; -pub type __fsword_t = ::core::ffi::c_long; -pub type __ssize_t = ::core::ffi::c_long; -pub type __syscall_slong_t = ::core::ffi::c_long; -pub type __syscall_ulong_t = ::core::ffi::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::core::ffi::c_char; -pub type __intptr_t = ::core::ffi::c_long; pub type __socklen_t = ::core::ffi::c_uint; pub type __sig_atomic_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::core::ffi::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::core::ffi::c_uint, - pub __wchb: [::core::ffi::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -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, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -7349,467 +6006,15 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub type wchar_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::core::ffi::c_int, - pub rem: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::core::ffi::c_long, - pub rem: ::core::ffi::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::core::ffi::c_longlong, - pub rem: ::core::ffi::c_longlong, -} -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 = ::core::ffi::c_ulong; -pub type ushort = ::core::ffi::c_ushort; -pub type uint = ::core::ffi::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::core::ffi::c_long; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct __sigset_t { pub __val: [::core::ffi::c_ulong; 16usize], } -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::core::ffi::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -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: ::core::ffi::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::core::ffi::c_uint, - pub __high: ::core::ffi::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::core::ffi::c_int, - pub __count: ::core::ffi::c_uint, - pub __owner: ::core::ffi::c_int, - pub __nusers: ::core::ffi::c_uint, - pub __kind: ::core::ffi::c_int, - pub __spins: ::core::ffi::c_short, - pub __elision: ::core::ffi::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::core::ffi::c_uint, - pub __writers: ::core::ffi::c_uint, - pub __wrphase_futex: ::core::ffi::c_uint, - pub __writers_futex: ::core::ffi::c_uint, - pub __pad3: ::core::ffi::c_uint, - pub __pad4: ::core::ffi::c_uint, - pub __cur_writer: ::core::ffi::c_int, - pub __shared: ::core::ffi::c_int, - pub __rwelision: ::core::ffi::c_schar, - pub __pad1: [::core::ffi::c_uchar; 7usize], - pub __pad2: ::core::ffi::c_ulong, - pub __flags: ::core::ffi::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::core::ffi::c_uint; 2usize], - pub __g_size: [::core::ffi::c_uint; 2usize], - pub __g1_orig_size: ::core::ffi::c_uint, - pub __wrefs: ::core::ffi::c_uint, - pub __g_signals: [::core::ffi::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::core::ffi::c_uint; -pub type __thrd_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::core::ffi::c_int, -} -pub type pthread_t = ::core::ffi::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::core::ffi::c_uint; -pub type pthread_once_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::core::ffi::c_char; 40usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::core::ffi::c_char; 48usize], - pub __align: ::core::ffi::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::core::ffi::c_char; 56usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::core::ffi::c_char; 8usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::core::ffi::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::core::ffi::c_char; 32usize], - pub __align: ::core::ffi::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::core::ffi::c_char; 4usize], - pub __align: ::core::ffi::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::core::ffi::c_int, - pub rand_deg: ::core::ffi::c_int, - pub rand_sep: ::core::ffi::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::core::ffi::c_ushort; 3usize], - pub __old_x: [::core::ffi::c_ushort; 3usize], - pub __c: ::core::ffi::c_ushort, - pub __init: ::core::ffi::c_ushort, - pub __a: ::core::ffi::c_ulonglong, -} -pub type __compar_fn_t = ::core::option::Option< - unsafe extern "C" fn( - arg1: *const ::core::ffi::c_void, - arg2: *const ::core::ffi::c_void, - ) -> ::core::ffi::c_int, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::core::ffi::c_ushort, - pub __ctype_tolower: *const ::core::ffi::c_int, - pub __ctype_toupper: *const ::core::ffi::c_int, - pub __names: [*const ::core::ffi::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::core::ffi::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -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 = ::core::ffi::c_schar; -pub type int_fast16_t = ::core::ffi::c_long; -pub type int_fast32_t = ::core::ffi::c_long; -pub type int_fast64_t = ::core::ffi::c_long; -pub type uint_fast8_t = ::core::ffi::c_uchar; -pub type uint_fast16_t = ::core::ffi::c_ulong; -pub type uint_fast32_t = ::core::ffi::c_ulong; -pub type uint_fast64_t = ::core::ffi::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::core::ffi::c_char, - pub thousands_sep: *mut ::core::ffi::c_char, - pub grouping: *mut ::core::ffi::c_char, - pub int_curr_symbol: *mut ::core::ffi::c_char, - pub currency_symbol: *mut ::core::ffi::c_char, - pub mon_decimal_point: *mut ::core::ffi::c_char, - pub mon_thousands_sep: *mut ::core::ffi::c_char, - pub mon_grouping: *mut ::core::ffi::c_char, - pub positive_sign: *mut ::core::ffi::c_char, - pub negative_sign: *mut ::core::ffi::c_char, - pub int_frac_digits: ::core::ffi::c_char, - pub frac_digits: ::core::ffi::c_char, - pub p_cs_precedes: ::core::ffi::c_char, - pub p_sep_by_space: ::core::ffi::c_char, - pub n_cs_precedes: ::core::ffi::c_char, - pub n_sep_by_space: ::core::ffi::c_char, - pub p_sign_posn: ::core::ffi::c_char, - pub n_sign_posn: ::core::ffi::c_char, - pub int_p_cs_precedes: ::core::ffi::c_char, - pub int_p_sep_by_space: ::core::ffi::c_char, - pub int_n_cs_precedes: ::core::ffi::c_char, - pub int_n_sep_by_space: ::core::ffi::c_char, - pub int_p_sign_posn: ::core::ffi::c_char, - pub int_n_sign_posn: ::core::ffi::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_funcptr_t = ::core::option::Option; pub type Pointer = *mut ::core::ffi::c_char; pub type int8 = ::core::ffi::c_schar; @@ -7954,32 +6159,7 @@ impl Default for PGAlignedXLogBlock { } } } -pub mod _bindgen_ty_1 { - pub type Type = ::core::ffi::c_uint; - pub const _ISupper: Type = 256; - pub const _ISlower: Type = 512; - pub const _ISalpha: Type = 1024; - pub const _ISdigit: Type = 2048; - pub const _ISxdigit: Type = 4096; - pub const _ISspace: Type = 8192; - pub const _ISprint: Type = 16384; - pub const _ISgraph: Type = 32768; - pub const _ISblank: Type = 1; - pub const _IScntrl: Type = 2; - pub const _ISpunct: Type = 4; - pub const _ISalnum: Type = 8; -} pub type pgsocket = ::core::ffi::c_int; -pub type float_t = f32; -pub type double_t = f64; -pub mod _bindgen_ty_2 { - pub type Type = ::core::ffi::c_uint; - pub const FP_NAN: Type = 0; - pub const FP_INFINITE: Type = 1; - pub const FP_ZERO: Type = 2; - pub const FP_SUBNORMAL: Type = 3; - pub const FP_NORMAL: Type = 4; -} pub type qsort_arg_comparator = ::core::option::Option< unsafe extern "C" fn( a: *const ::core::ffi::c_void, @@ -7997,7 +6177,6 @@ pub struct __jmp_buf_tag { pub __mask_was_saved: ::core::ffi::c_int, pub __saved_mask: __sigset_t, } -pub type jmp_buf = [__jmp_buf_tag; 1usize]; pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -8977,6 +7156,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_off_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_off_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn lp_flags(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } } @@ -8988,6 +7189,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_flags_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 15usize, + 2u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_flags_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 15usize, + 2u8, + val as u64, + ) + } + } + #[inline] pub fn lp_len(&self) -> ::core::ffi::c_uint { unsafe { ::core::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } } @@ -8999,6 +7222,28 @@ impl ItemIdData { } } #[inline] + pub unsafe fn lp_len_raw(this: *const Self) -> ::core::ffi::c_uint { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 17usize, + 15u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_lp_len_raw(this: *mut Self, val: ::core::ffi::c_uint) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 17usize, + 15u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( lp_off: ::core::ffi::c_uint, lp_flags: ::core::ffi::c_uint, @@ -9052,32 +7297,19 @@ impl Default for HeapTupleData { } pub type HeapTuple = *mut HeapTupleData; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::core::ffi::c_short, - pub l_whence: ::core::ffi::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, +#[derive(Debug, Copy, Clone)] +pub struct iovec { + pub iov_base: *mut ::core::ffi::c_void, + pub iov_len: usize, } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::core::ffi::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], +impl Default for iovec { + fn default() -> Self { + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; @@ -9504,36 +7736,6 @@ pub struct instr_time { pub ticks: int64, } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::core::ffi::c_int, - pub tm_min: ::core::ffi::c_int, - pub tm_hour: ::core::ffi::c_int, - pub tm_mday: ::core::ffi::c_int, - pub tm_mon: ::core::ffi::c_int, - pub tm_year: ::core::ffi::c_int, - pub tm_wday: ::core::ffi::c_int, - pub tm_yday: ::core::ffi::c_int, - pub tm_isdst: ::core::ffi::c_int, - pub tm_gmtoff: ::core::ffi::c_long, - pub tm_zone: *const ::core::ffi::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -#[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct BufferUsage { pub shared_blks_hit: int64, @@ -12839,334 +11041,7 @@ impl Default for TriggerDesc { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::core::ffi::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type useconds_t = __useconds_t; pub type socklen_t = __socklen_t; -pub mod _bindgen_ty_3 { - pub type Type = ::core::ffi::c_uint; - pub const _PC_LINK_MAX: Type = 0; - pub const _PC_MAX_CANON: Type = 1; - pub const _PC_MAX_INPUT: Type = 2; - pub const _PC_NAME_MAX: Type = 3; - pub const _PC_PATH_MAX: Type = 4; - pub const _PC_PIPE_BUF: Type = 5; - pub const _PC_CHOWN_RESTRICTED: Type = 6; - pub const _PC_NO_TRUNC: Type = 7; - pub const _PC_VDISABLE: Type = 8; - pub const _PC_SYNC_IO: Type = 9; - pub const _PC_ASYNC_IO: Type = 10; - pub const _PC_PRIO_IO: Type = 11; - pub const _PC_SOCK_MAXBUF: Type = 12; - pub const _PC_FILESIZEBITS: Type = 13; - pub const _PC_REC_INCR_XFER_SIZE: Type = 14; - pub const _PC_REC_MAX_XFER_SIZE: Type = 15; - pub const _PC_REC_MIN_XFER_SIZE: Type = 16; - pub const _PC_REC_XFER_ALIGN: Type = 17; - pub const _PC_ALLOC_SIZE_MIN: Type = 18; - pub const _PC_SYMLINK_MAX: Type = 19; - pub const _PC_2_SYMLINKS: Type = 20; -} -pub mod _bindgen_ty_4 { - pub type Type = ::core::ffi::c_uint; - pub const _SC_ARG_MAX: Type = 0; - pub const _SC_CHILD_MAX: Type = 1; - pub const _SC_CLK_TCK: Type = 2; - pub const _SC_NGROUPS_MAX: Type = 3; - pub const _SC_OPEN_MAX: Type = 4; - pub const _SC_STREAM_MAX: Type = 5; - pub const _SC_TZNAME_MAX: Type = 6; - pub const _SC_JOB_CONTROL: Type = 7; - pub const _SC_SAVED_IDS: Type = 8; - pub const _SC_REALTIME_SIGNALS: Type = 9; - pub const _SC_PRIORITY_SCHEDULING: Type = 10; - pub const _SC_TIMERS: Type = 11; - pub const _SC_ASYNCHRONOUS_IO: Type = 12; - pub const _SC_PRIORITIZED_IO: Type = 13; - pub const _SC_SYNCHRONIZED_IO: Type = 14; - pub const _SC_FSYNC: Type = 15; - pub const _SC_MAPPED_FILES: Type = 16; - pub const _SC_MEMLOCK: Type = 17; - pub const _SC_MEMLOCK_RANGE: Type = 18; - pub const _SC_MEMORY_PROTECTION: Type = 19; - pub const _SC_MESSAGE_PASSING: Type = 20; - pub const _SC_SEMAPHORES: Type = 21; - pub const _SC_SHARED_MEMORY_OBJECTS: Type = 22; - pub const _SC_AIO_LISTIO_MAX: Type = 23; - pub const _SC_AIO_MAX: Type = 24; - pub const _SC_AIO_PRIO_DELTA_MAX: Type = 25; - pub const _SC_DELAYTIMER_MAX: Type = 26; - pub const _SC_MQ_OPEN_MAX: Type = 27; - pub const _SC_MQ_PRIO_MAX: Type = 28; - pub const _SC_VERSION: Type = 29; - pub const _SC_PAGESIZE: Type = 30; - pub const _SC_RTSIG_MAX: Type = 31; - pub const _SC_SEM_NSEMS_MAX: Type = 32; - pub const _SC_SEM_VALUE_MAX: Type = 33; - pub const _SC_SIGQUEUE_MAX: Type = 34; - pub const _SC_TIMER_MAX: Type = 35; - pub const _SC_BC_BASE_MAX: Type = 36; - pub const _SC_BC_DIM_MAX: Type = 37; - pub const _SC_BC_SCALE_MAX: Type = 38; - pub const _SC_BC_STRING_MAX: Type = 39; - pub const _SC_COLL_WEIGHTS_MAX: Type = 40; - pub const _SC_EQUIV_CLASS_MAX: Type = 41; - pub const _SC_EXPR_NEST_MAX: Type = 42; - pub const _SC_LINE_MAX: Type = 43; - pub const _SC_RE_DUP_MAX: Type = 44; - pub const _SC_CHARCLASS_NAME_MAX: Type = 45; - pub const _SC_2_VERSION: Type = 46; - pub const _SC_2_C_BIND: Type = 47; - pub const _SC_2_C_DEV: Type = 48; - pub const _SC_2_FORT_DEV: Type = 49; - pub const _SC_2_FORT_RUN: Type = 50; - pub const _SC_2_SW_DEV: Type = 51; - pub const _SC_2_LOCALEDEF: Type = 52; - pub const _SC_PII: Type = 53; - pub const _SC_PII_XTI: Type = 54; - pub const _SC_PII_SOCKET: Type = 55; - pub const _SC_PII_INTERNET: Type = 56; - pub const _SC_PII_OSI: Type = 57; - pub const _SC_POLL: Type = 58; - pub const _SC_SELECT: Type = 59; - pub const _SC_UIO_MAXIOV: Type = 60; - pub const _SC_IOV_MAX: Type = 60; - pub const _SC_PII_INTERNET_STREAM: Type = 61; - pub const _SC_PII_INTERNET_DGRAM: Type = 62; - pub const _SC_PII_OSI_COTS: Type = 63; - pub const _SC_PII_OSI_CLTS: Type = 64; - pub const _SC_PII_OSI_M: Type = 65; - pub const _SC_T_IOV_MAX: Type = 66; - pub const _SC_THREADS: Type = 67; - pub const _SC_THREAD_SAFE_FUNCTIONS: Type = 68; - pub const _SC_GETGR_R_SIZE_MAX: Type = 69; - pub const _SC_GETPW_R_SIZE_MAX: Type = 70; - pub const _SC_LOGIN_NAME_MAX: Type = 71; - pub const _SC_TTY_NAME_MAX: Type = 72; - pub const _SC_THREAD_DESTRUCTOR_ITERATIONS: Type = 73; - pub const _SC_THREAD_KEYS_MAX: Type = 74; - pub const _SC_THREAD_STACK_MIN: Type = 75; - pub const _SC_THREAD_THREADS_MAX: Type = 76; - pub const _SC_THREAD_ATTR_STACKADDR: Type = 77; - pub const _SC_THREAD_ATTR_STACKSIZE: Type = 78; - pub const _SC_THREAD_PRIORITY_SCHEDULING: Type = 79; - pub const _SC_THREAD_PRIO_INHERIT: Type = 80; - pub const _SC_THREAD_PRIO_PROTECT: Type = 81; - pub const _SC_THREAD_PROCESS_SHARED: Type = 82; - pub const _SC_NPROCESSORS_CONF: Type = 83; - pub const _SC_NPROCESSORS_ONLN: Type = 84; - pub const _SC_PHYS_PAGES: Type = 85; - pub const _SC_AVPHYS_PAGES: Type = 86; - pub const _SC_ATEXIT_MAX: Type = 87; - pub const _SC_PASS_MAX: Type = 88; - pub const _SC_XOPEN_VERSION: Type = 89; - pub const _SC_XOPEN_XCU_VERSION: Type = 90; - pub const _SC_XOPEN_UNIX: Type = 91; - pub const _SC_XOPEN_CRYPT: Type = 92; - pub const _SC_XOPEN_ENH_I18N: Type = 93; - pub const _SC_XOPEN_SHM: Type = 94; - pub const _SC_2_CHAR_TERM: Type = 95; - pub const _SC_2_C_VERSION: Type = 96; - pub const _SC_2_UPE: Type = 97; - pub const _SC_XOPEN_XPG2: Type = 98; - pub const _SC_XOPEN_XPG3: Type = 99; - pub const _SC_XOPEN_XPG4: Type = 100; - pub const _SC_CHAR_BIT: Type = 101; - pub const _SC_CHAR_MAX: Type = 102; - pub const _SC_CHAR_MIN: Type = 103; - pub const _SC_INT_MAX: Type = 104; - pub const _SC_INT_MIN: Type = 105; - pub const _SC_LONG_BIT: Type = 106; - pub const _SC_WORD_BIT: Type = 107; - pub const _SC_MB_LEN_MAX: Type = 108; - pub const _SC_NZERO: Type = 109; - pub const _SC_SSIZE_MAX: Type = 110; - pub const _SC_SCHAR_MAX: Type = 111; - pub const _SC_SCHAR_MIN: Type = 112; - pub const _SC_SHRT_MAX: Type = 113; - pub const _SC_SHRT_MIN: Type = 114; - pub const _SC_UCHAR_MAX: Type = 115; - pub const _SC_UINT_MAX: Type = 116; - pub const _SC_ULONG_MAX: Type = 117; - pub const _SC_USHRT_MAX: Type = 118; - pub const _SC_NL_ARGMAX: Type = 119; - pub const _SC_NL_LANGMAX: Type = 120; - pub const _SC_NL_MSGMAX: Type = 121; - pub const _SC_NL_NMAX: Type = 122; - pub const _SC_NL_SETMAX: Type = 123; - pub const _SC_NL_TEXTMAX: Type = 124; - pub const _SC_XBS5_ILP32_OFF32: Type = 125; - pub const _SC_XBS5_ILP32_OFFBIG: Type = 126; - pub const _SC_XBS5_LP64_OFF64: Type = 127; - pub const _SC_XBS5_LPBIG_OFFBIG: Type = 128; - pub const _SC_XOPEN_LEGACY: Type = 129; - pub const _SC_XOPEN_REALTIME: Type = 130; - pub const _SC_XOPEN_REALTIME_THREADS: Type = 131; - pub const _SC_ADVISORY_INFO: Type = 132; - pub const _SC_BARRIERS: Type = 133; - pub const _SC_BASE: Type = 134; - pub const _SC_C_LANG_SUPPORT: Type = 135; - pub const _SC_C_LANG_SUPPORT_R: Type = 136; - pub const _SC_CLOCK_SELECTION: Type = 137; - pub const _SC_CPUTIME: Type = 138; - pub const _SC_THREAD_CPUTIME: Type = 139; - pub const _SC_DEVICE_IO: Type = 140; - pub const _SC_DEVICE_SPECIFIC: Type = 141; - pub const _SC_DEVICE_SPECIFIC_R: Type = 142; - pub const _SC_FD_MGMT: Type = 143; - pub const _SC_FIFO: Type = 144; - pub const _SC_PIPE: Type = 145; - pub const _SC_FILE_ATTRIBUTES: Type = 146; - pub const _SC_FILE_LOCKING: Type = 147; - pub const _SC_FILE_SYSTEM: Type = 148; - pub const _SC_MONOTONIC_CLOCK: Type = 149; - pub const _SC_MULTI_PROCESS: Type = 150; - pub const _SC_SINGLE_PROCESS: Type = 151; - pub const _SC_NETWORKING: Type = 152; - pub const _SC_READER_WRITER_LOCKS: Type = 153; - pub const _SC_SPIN_LOCKS: Type = 154; - pub const _SC_REGEXP: Type = 155; - pub const _SC_REGEX_VERSION: Type = 156; - pub const _SC_SHELL: Type = 157; - pub const _SC_SIGNALS: Type = 158; - pub const _SC_SPAWN: Type = 159; - pub const _SC_SPORADIC_SERVER: Type = 160; - pub const _SC_THREAD_SPORADIC_SERVER: Type = 161; - pub const _SC_SYSTEM_DATABASE: Type = 162; - pub const _SC_SYSTEM_DATABASE_R: Type = 163; - pub const _SC_TIMEOUTS: Type = 164; - pub const _SC_TYPED_MEMORY_OBJECTS: Type = 165; - pub const _SC_USER_GROUPS: Type = 166; - pub const _SC_USER_GROUPS_R: Type = 167; - pub const _SC_2_PBS: Type = 168; - pub const _SC_2_PBS_ACCOUNTING: Type = 169; - pub const _SC_2_PBS_LOCATE: Type = 170; - pub const _SC_2_PBS_MESSAGE: Type = 171; - pub const _SC_2_PBS_TRACK: Type = 172; - pub const _SC_SYMLOOP_MAX: Type = 173; - pub const _SC_STREAMS: Type = 174; - pub const _SC_2_PBS_CHECKPOINT: Type = 175; - pub const _SC_V6_ILP32_OFF32: Type = 176; - pub const _SC_V6_ILP32_OFFBIG: Type = 177; - pub const _SC_V6_LP64_OFF64: Type = 178; - pub const _SC_V6_LPBIG_OFFBIG: Type = 179; - pub const _SC_HOST_NAME_MAX: Type = 180; - pub const _SC_TRACE: Type = 181; - pub const _SC_TRACE_EVENT_FILTER: Type = 182; - pub const _SC_TRACE_INHERIT: Type = 183; - pub const _SC_TRACE_LOG: Type = 184; - pub const _SC_LEVEL1_ICACHE_SIZE: Type = 185; - pub const _SC_LEVEL1_ICACHE_ASSOC: Type = 186; - pub const _SC_LEVEL1_ICACHE_LINESIZE: Type = 187; - pub const _SC_LEVEL1_DCACHE_SIZE: Type = 188; - pub const _SC_LEVEL1_DCACHE_ASSOC: Type = 189; - pub const _SC_LEVEL1_DCACHE_LINESIZE: Type = 190; - pub const _SC_LEVEL2_CACHE_SIZE: Type = 191; - pub const _SC_LEVEL2_CACHE_ASSOC: Type = 192; - pub const _SC_LEVEL2_CACHE_LINESIZE: Type = 193; - pub const _SC_LEVEL3_CACHE_SIZE: Type = 194; - pub const _SC_LEVEL3_CACHE_ASSOC: Type = 195; - pub const _SC_LEVEL3_CACHE_LINESIZE: Type = 196; - pub const _SC_LEVEL4_CACHE_SIZE: Type = 197; - pub const _SC_LEVEL4_CACHE_ASSOC: Type = 198; - pub const _SC_LEVEL4_CACHE_LINESIZE: Type = 199; - pub const _SC_IPV6: Type = 235; - pub const _SC_RAW_SOCKETS: Type = 236; - pub const _SC_V7_ILP32_OFF32: Type = 237; - pub const _SC_V7_ILP32_OFFBIG: Type = 238; - pub const _SC_V7_LP64_OFF64: Type = 239; - pub const _SC_V7_LPBIG_OFFBIG: Type = 240; - pub const _SC_SS_REPL_MAX: Type = 241; - pub const _SC_TRACE_EVENT_NAME_MAX: Type = 242; - pub const _SC_TRACE_NAME_MAX: Type = 243; - pub const _SC_TRACE_SYS_MAX: Type = 244; - pub const _SC_TRACE_USER_EVENT_MAX: Type = 245; - pub const _SC_XOPEN_STREAMS: Type = 246; - pub const _SC_THREAD_ROBUST_PRIO_INHERIT: Type = 247; - pub const _SC_THREAD_ROBUST_PRIO_PROTECT: Type = 248; - pub const _SC_MINSIGSTKSZ: Type = 249; - pub const _SC_SIGSTKSZ: Type = 250; -} -pub mod _bindgen_ty_5 { - pub type Type = ::core::ffi::c_uint; - pub const _CS_PATH: Type = 0; - pub const _CS_V6_WIDTH_RESTRICTED_ENVS: Type = 1; - pub const _CS_GNU_LIBC_VERSION: Type = 2; - pub const _CS_GNU_LIBPTHREAD_VERSION: Type = 3; - pub const _CS_V5_WIDTH_RESTRICTED_ENVS: Type = 4; - pub const _CS_V7_WIDTH_RESTRICTED_ENVS: Type = 5; - pub const _CS_LFS_CFLAGS: Type = 1000; - pub const _CS_LFS_LDFLAGS: Type = 1001; - pub const _CS_LFS_LIBS: Type = 1002; - pub const _CS_LFS_LINTFLAGS: Type = 1003; - pub const _CS_LFS64_CFLAGS: Type = 1004; - pub const _CS_LFS64_LDFLAGS: Type = 1005; - pub const _CS_LFS64_LIBS: Type = 1006; - pub const _CS_LFS64_LINTFLAGS: Type = 1007; - pub const _CS_XBS5_ILP32_OFF32_CFLAGS: Type = 1100; - pub const _CS_XBS5_ILP32_OFF32_LDFLAGS: Type = 1101; - pub const _CS_XBS5_ILP32_OFF32_LIBS: Type = 1102; - pub const _CS_XBS5_ILP32_OFF32_LINTFLAGS: Type = 1103; - pub const _CS_XBS5_ILP32_OFFBIG_CFLAGS: Type = 1104; - pub const _CS_XBS5_ILP32_OFFBIG_LDFLAGS: Type = 1105; - pub const _CS_XBS5_ILP32_OFFBIG_LIBS: Type = 1106; - pub const _CS_XBS5_ILP32_OFFBIG_LINTFLAGS: Type = 1107; - pub const _CS_XBS5_LP64_OFF64_CFLAGS: Type = 1108; - pub const _CS_XBS5_LP64_OFF64_LDFLAGS: Type = 1109; - pub const _CS_XBS5_LP64_OFF64_LIBS: Type = 1110; - pub const _CS_XBS5_LP64_OFF64_LINTFLAGS: Type = 1111; - pub const _CS_XBS5_LPBIG_OFFBIG_CFLAGS: Type = 1112; - pub const _CS_XBS5_LPBIG_OFFBIG_LDFLAGS: Type = 1113; - pub const _CS_XBS5_LPBIG_OFFBIG_LIBS: Type = 1114; - pub const _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS: Type = 1115; - pub const _CS_POSIX_V6_ILP32_OFF32_CFLAGS: Type = 1116; - pub const _CS_POSIX_V6_ILP32_OFF32_LDFLAGS: Type = 1117; - pub const _CS_POSIX_V6_ILP32_OFF32_LIBS: Type = 1118; - pub const _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS: Type = 1119; - pub const _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS: Type = 1120; - pub const _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS: Type = 1121; - pub const _CS_POSIX_V6_ILP32_OFFBIG_LIBS: Type = 1122; - pub const _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS: Type = 1123; - pub const _CS_POSIX_V6_LP64_OFF64_CFLAGS: Type = 1124; - pub const _CS_POSIX_V6_LP64_OFF64_LDFLAGS: Type = 1125; - pub const _CS_POSIX_V6_LP64_OFF64_LIBS: Type = 1126; - pub const _CS_POSIX_V6_LP64_OFF64_LINTFLAGS: Type = 1127; - pub const _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS: Type = 1128; - pub const _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS: Type = 1129; - pub const _CS_POSIX_V6_LPBIG_OFFBIG_LIBS: Type = 1130; - pub const _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS: Type = 1131; - pub const _CS_POSIX_V7_ILP32_OFF32_CFLAGS: Type = 1132; - pub const _CS_POSIX_V7_ILP32_OFF32_LDFLAGS: Type = 1133; - pub const _CS_POSIX_V7_ILP32_OFF32_LIBS: Type = 1134; - pub const _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS: Type = 1135; - pub const _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS: Type = 1136; - pub const _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS: Type = 1137; - pub const _CS_POSIX_V7_ILP32_OFFBIG_LIBS: Type = 1138; - pub const _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS: Type = 1139; - pub const _CS_POSIX_V7_LP64_OFF64_CFLAGS: Type = 1140; - pub const _CS_POSIX_V7_LP64_OFF64_LDFLAGS: Type = 1141; - pub const _CS_POSIX_V7_LP64_OFF64_LIBS: Type = 1142; - pub const _CS_POSIX_V7_LP64_OFF64_LINTFLAGS: Type = 1143; - pub const _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS: Type = 1144; - pub const _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS: Type = 1145; - pub const _CS_POSIX_V7_LPBIG_OFFBIG_LIBS: Type = 1146; - pub const _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS: Type = 1147; - pub const _CS_V6_ENV: Type = 1148; - pub const _CS_V7_ENV: Type = 1149; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct dirent { @@ -13185,18 +11060,6 @@ impl Default for dirent { } } } -pub mod _bindgen_ty_6 { - pub type Type = ::core::ffi::c_uint; - pub const DT_UNKNOWN: Type = 0; - pub const DT_FIFO: Type = 1; - pub const DT_CHR: Type = 2; - pub const DT_DIR: Type = 4; - pub const DT_BLK: Type = 6; - pub const DT_REG: Type = 8; - pub const DT_LNK: Type = 10; - pub const DT_SOCK: Type = 12; - pub const DT_WHT: Type = 14; -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { @@ -20700,586 +18563,13 @@ pub mod TypeFuncClass { pub const TYPEFUNC_OTHER: Type = 4; } pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::core::ffi::c_int, - pub sival_ptr: *mut ::core::ffi::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::core::ffi::c_int, - pub si_errno: ::core::ffi::c_int, - pub si_code: ::core::ffi::c_int, - pub __pad0: ::core::ffi::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::core::ffi::c_int, - pub si_overrun: ::core::ffi::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::core::ffi::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::core::ffi::c_void, - pub si_addr_lsb: ::core::ffi::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::core::ffi::c_void, - pub _upper: *mut ::core::ffi::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::core::ffi::c_long, - pub si_fd: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::core::ffi::c_void, - pub _syscall: ::core::ffi::c_int, - pub _arch: ::core::ffi::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_7 { - pub type Type = ::core::ffi::c_int; - pub const SI_ASYNCNL: Type = -60; - pub const SI_DETHREAD: Type = -7; - pub const SI_TKILL: Type = -6; - pub const SI_SIGIO: Type = -5; - pub const SI_ASYNCIO: Type = -4; - pub const SI_MESGQ: Type = -3; - pub const SI_TIMER: Type = -2; - pub const SI_QUEUE: Type = -1; - pub const SI_USER: Type = 0; - pub const SI_KERNEL: Type = 128; -} -pub mod _bindgen_ty_8 { - pub type Type = ::core::ffi::c_uint; - pub const ILL_ILLOPC: Type = 1; - pub const ILL_ILLOPN: Type = 2; - pub const ILL_ILLADR: Type = 3; - pub const ILL_ILLTRP: Type = 4; - pub const ILL_PRVOPC: Type = 5; - pub const ILL_PRVREG: Type = 6; - pub const ILL_COPROC: Type = 7; - pub const ILL_BADSTK: Type = 8; - pub const ILL_BADIADDR: Type = 9; -} -pub mod _bindgen_ty_9 { - pub type Type = ::core::ffi::c_uint; - pub const FPE_INTDIV: Type = 1; - pub const FPE_INTOVF: Type = 2; - pub const FPE_FLTDIV: Type = 3; - pub const FPE_FLTOVF: Type = 4; - pub const FPE_FLTUND: Type = 5; - pub const FPE_FLTRES: Type = 6; - pub const FPE_FLTINV: Type = 7; - pub const FPE_FLTSUB: Type = 8; - pub const FPE_FLTUNK: Type = 14; - pub const FPE_CONDTRAP: Type = 15; -} -pub mod _bindgen_ty_10 { - pub type Type = ::core::ffi::c_uint; - pub const SEGV_MAPERR: Type = 1; - pub const SEGV_ACCERR: Type = 2; - pub const SEGV_BNDERR: Type = 3; - pub const SEGV_PKUERR: Type = 4; - pub const SEGV_ACCADI: Type = 5; - pub const SEGV_ADIDERR: Type = 6; - pub const SEGV_ADIPERR: Type = 7; - pub const SEGV_MTEAERR: Type = 8; - pub const SEGV_MTESERR: Type = 9; -} -pub mod _bindgen_ty_11 { - pub type Type = ::core::ffi::c_uint; - pub const BUS_ADRALN: Type = 1; - pub const BUS_ADRERR: Type = 2; - pub const BUS_OBJERR: Type = 3; - pub const BUS_MCEERR_AR: Type = 4; - pub const BUS_MCEERR_AO: Type = 5; -} -pub mod _bindgen_ty_12 { - pub type Type = ::core::ffi::c_uint; - pub const CLD_EXITED: Type = 1; - pub const CLD_KILLED: Type = 2; - pub const CLD_DUMPED: Type = 3; - pub const CLD_TRAPPED: Type = 4; - pub const CLD_STOPPED: Type = 5; - pub const CLD_CONTINUED: Type = 6; -} -pub mod _bindgen_ty_13 { - pub type Type = ::core::ffi::c_uint; - pub const POLL_IN: Type = 1; - pub const POLL_OUT: Type = 2; - pub const POLL_MSG: Type = 3; - pub const POLL_ERR: Type = 4; - pub const POLL_PRI: Type = 5; - pub const POLL_HUP: Type = 6; -} -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::core::ffi::c_int, - pub sigev_notify: ::core::ffi::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::core::ffi::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::core::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub mod _bindgen_ty_14 { +pub mod _bindgen_ty_16 { pub type Type = ::core::ffi::c_uint; pub const SIGEV_SIGNAL: Type = 0; pub const SIGEV_NONE: Type = 1; pub const SIGEV_THREAD: Type = 2; pub const SIGEV_THREAD_ID: Type = 4; } -pub type __sighandler_t = ::core::option::Option; -pub type sig_t = __sighandler_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::core::ffi::c_int, - pub sa_restorer: ::core::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::core::option::Option< - unsafe extern "C" fn( - arg1: ::core::ffi::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::core::ffi::c_void, - ), - >, -} -impl Default for sigaction__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigaction { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::core::ffi::c_ushort, - pub gs: ::core::ffi::c_ushort, - pub fs: ::core::ffi::c_ushort, - pub __pad0: ::core::ffi::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_flags: ::core::ffi::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type greg_t = ::core::ffi::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::core::ffi::c_ushort; 4usize], - pub exponent: ::core::ffi::c_ushort, - pub __glibc_reserved1: [::core::ffi::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::core::ffi::c_ulonglong; 8usize], -} -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::core::ffi::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::core::ffi::c_ulonglong; 4usize], -} -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub mod _bindgen_ty_15 { - pub type Type = ::core::ffi::c_uint; - pub const SS_ONSTACK: Type = 1; - pub const SS_DISABLE: Type = 2; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::core::ffi::c_void, - pub ss_onstack: ::core::ffi::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -21358,26 +18648,8 @@ pub mod ProgressCommandType { pub const PROGRESS_COMMAND_BASEBACKUP: Type = 5; pub const PROGRESS_COMMAND_COPY: Type = 6; } -pub mod __socket_type { - pub type Type = ::core::ffi::c_uint; - pub const SOCK_STREAM: Type = 1; - pub const SOCK_DGRAM: Type = 2; - pub const SOCK_RAW: Type = 3; - pub const SOCK_RDM: Type = 4; - pub const SOCK_SEQPACKET: Type = 5; - pub const SOCK_DCCP: Type = 6; - pub const SOCK_PACKET: Type = 10; - pub const SOCK_CLOEXEC: Type = 524288; - pub const SOCK_NONBLOCK: Type = 2048; -} pub type sa_family_t = ::core::ffi::c_ushort; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::core::ffi::c_char; 14usize], -} -#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct sockaddr_storage { pub ss_family: sa_family_t, @@ -21393,491 +18665,6 @@ impl Default for sockaddr_storage { } } } -pub mod _bindgen_ty_16 { - pub type Type = ::core::ffi::c_uint; - pub const MSG_OOB: Type = 1; - pub const MSG_PEEK: Type = 2; - pub const MSG_DONTROUTE: Type = 4; - pub const MSG_CTRUNC: Type = 8; - pub const MSG_PROXY: Type = 16; - pub const MSG_TRUNC: Type = 32; - pub const MSG_DONTWAIT: Type = 64; - pub const MSG_EOR: Type = 128; - pub const MSG_WAITALL: Type = 256; - pub const MSG_FIN: Type = 512; - pub const MSG_SYN: Type = 1024; - pub const MSG_CONFIRM: Type = 2048; - pub const MSG_RST: Type = 4096; - pub const MSG_ERRQUEUE: Type = 8192; - pub const MSG_NOSIGNAL: Type = 16384; - pub const MSG_MORE: Type = 32768; - pub const MSG_WAITFORONE: Type = 65536; - pub const MSG_BATCH: Type = 262144; - pub const MSG_ZEROCOPY: Type = 67108864; - pub const MSG_FASTOPEN: Type = 536870912; - pub const MSG_CMSG_CLOEXEC: Type = 1073741824; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::core::ffi::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::core::ffi::c_void, - pub msg_controllen: usize, - pub msg_flags: ::core::ffi::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::core::ffi::c_int, - pub cmsg_type: ::core::ffi::c_int, - pub __cmsg_data: __IncompleteArrayField<::core::ffi::c_uchar>, -} -pub mod _bindgen_ty_17 { - pub type Type = ::core::ffi::c_uint; - pub const SCM_RIGHTS: Type = 1; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::core::ffi::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::core::option::Option; -pub type __kernel_key_t = ::core::ffi::c_int; -pub type __kernel_mqd_t = ::core::ffi::c_int; -pub type __kernel_old_uid_t = ::core::ffi::c_ushort; -pub type __kernel_old_gid_t = ::core::ffi::c_ushort; -pub type __kernel_old_dev_t = ::core::ffi::c_ulong; -pub type __kernel_long_t = ::core::ffi::c_long; -pub type __kernel_ulong_t = ::core::ffi::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::core::ffi::c_uint; -pub type __kernel_pid_t = ::core::ffi::c_int; -pub type __kernel_ipc_pid_t = ::core::ffi::c_int; -pub type __kernel_uid_t = ::core::ffi::c_uint; -pub type __kernel_gid_t = ::core::ffi::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::core::ffi::c_int; -pub type __kernel_uid32_t = ::core::ffi::c_uint; -pub type __kernel_gid32_t = ::core::ffi::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::core::ffi::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::core::ffi::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::core::ffi::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::core::ffi::c_int; -pub type __kernel_clockid_t = ::core::ffi::c_int; -pub type __kernel_caddr_t = *mut ::core::ffi::c_char; -pub type __kernel_uid16_t = ::core::ffi::c_ushort; -pub type __kernel_gid16_t = ::core::ffi::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::core::ffi::c_int, - pub l_linger: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::core::ffi::c_ushort, - pub sa_data: [::core::ffi::c_uchar; 14usize], -} -pub mod _bindgen_ty_18 { - pub type Type = ::core::ffi::c_uint; - pub const SHUT_RD: Type = 0; - pub const SHUT_WR: Type = 1; - pub const SHUT_RDWR: Type = 2; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::core::ffi::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::core::ffi::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::core::ffi::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::core::ffi::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub mod _bindgen_ty_19 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_IP: Type = 0; - pub const IPPROTO_ICMP: Type = 1; - pub const IPPROTO_IGMP: Type = 2; - pub const IPPROTO_IPIP: Type = 4; - pub const IPPROTO_TCP: Type = 6; - pub const IPPROTO_EGP: Type = 8; - pub const IPPROTO_PUP: Type = 12; - pub const IPPROTO_UDP: Type = 17; - pub const IPPROTO_IDP: Type = 22; - pub const IPPROTO_TP: Type = 29; - pub const IPPROTO_DCCP: Type = 33; - pub const IPPROTO_IPV6: Type = 41; - pub const IPPROTO_RSVP: Type = 46; - pub const IPPROTO_GRE: Type = 47; - pub const IPPROTO_ESP: Type = 50; - pub const IPPROTO_AH: Type = 51; - pub const IPPROTO_MTP: Type = 92; - pub const IPPROTO_BEETPH: Type = 94; - pub const IPPROTO_ENCAP: Type = 98; - pub const IPPROTO_PIM: Type = 103; - pub const IPPROTO_COMP: Type = 108; - pub const IPPROTO_SCTP: Type = 132; - pub const IPPROTO_UDPLITE: Type = 136; - pub const IPPROTO_MPLS: Type = 137; - pub const IPPROTO_ETHERNET: Type = 143; - pub const IPPROTO_RAW: Type = 255; - pub const IPPROTO_MPTCP: Type = 262; - pub const IPPROTO_MAX: Type = 263; -} -pub mod _bindgen_ty_20 { - pub type Type = ::core::ffi::c_uint; - pub const IPPROTO_HOPOPTS: Type = 0; - pub const IPPROTO_ROUTING: Type = 43; - pub const IPPROTO_FRAGMENT: Type = 44; - pub const IPPROTO_ICMPV6: Type = 58; - pub const IPPROTO_NONE: Type = 59; - pub const IPPROTO_DSTOPTS: Type = 60; - pub const IPPROTO_MH: Type = 135; -} -pub type in_port_t = u16; -pub mod _bindgen_ty_21 { - pub type Type = ::core::ffi::c_uint; - pub const IPPORT_ECHO: Type = 7; - pub const IPPORT_DISCARD: Type = 9; - pub const IPPORT_SYSTAT: Type = 11; - pub const IPPORT_DAYTIME: Type = 13; - pub const IPPORT_NETSTAT: Type = 15; - pub const IPPORT_FTP: Type = 21; - pub const IPPORT_TELNET: Type = 23; - pub const IPPORT_SMTP: Type = 25; - pub const IPPORT_TIMESERVER: Type = 37; - pub const IPPORT_NAMESERVER: Type = 42; - pub const IPPORT_WHOIS: Type = 43; - pub const IPPORT_MTP: Type = 57; - pub const IPPORT_TFTP: Type = 69; - pub const IPPORT_RJE: Type = 77; - pub const IPPORT_FINGER: Type = 79; - pub const IPPORT_TTYLINK: Type = 87; - pub const IPPORT_SUPDUP: Type = 95; - pub const IPPORT_EXECSERVER: Type = 512; - pub const IPPORT_LOGINSERVER: Type = 513; - pub const IPPORT_CMDSERVER: Type = 514; - pub const IPPORT_EFSSERVER: Type = 520; - pub const IPPORT_BIFFUDP: Type = 512; - pub const IPPORT_WHOSERVER: Type = 513; - pub const IPPORT_ROUTESERVER: Type = 520; - pub const IPPORT_RESERVED: Type = 1024; - pub const IPPORT_USERRESERVED: Type = 5000; -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::core::ffi::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::core::ffi::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::core::ffi::c_char, - pub r_aliases: *mut *mut ::core::ffi::c_char, - pub r_number: ::core::ffi::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::core::ffi::c_char, - pub n_aliases: *mut *mut ::core::ffi::c_char, - pub n_addrtype: ::core::ffi::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::core::ffi::c_char, - pub h_aliases: *mut *mut ::core::ffi::c_char, - pub h_addrtype: ::core::ffi::c_int, - pub h_length: ::core::ffi::c_int, - pub h_addr_list: *mut *mut ::core::ffi::c_char, -} -impl Default for hostent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::core::ffi::c_char, - pub s_aliases: *mut *mut ::core::ffi::c_char, - pub s_port: ::core::ffi::c_int, - pub s_proto: *mut ::core::ffi::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::core::ffi::c_char, - pub p_aliases: *mut *mut ::core::ffi::c_char, - pub p_proto: ::core::ffi::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::core::ffi::c_int, - pub ai_family: ::core::ffi::c_int, - pub ai_socktype: ::core::ffi::c_int, - pub ai_protocol: ::core::ffi::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::core::ffi::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::core::mem::MaybeUninit::::uninit(); - unsafe { - ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct SockAddr { @@ -28148,6 +24935,7 @@ pub struct ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { pub fcinfo_data: FunctionCallInfo, pub fn_addr: PGFunction, pub nargs: ::core::ffi::c_int, + pub make_ro: bool, } impl Default for ExprEvalStep__bindgen_ty_1__bindgen_ty_7 { fn default() -> Self { @@ -29301,7 +26089,18 @@ pub struct IndexOptInfo { pub amhasgetbitmap: bool, pub amcanparallel: bool, pub amcanmarkpos: bool, - pub amcostestimate: ::core::option::Option, + pub amcostestimate: ::core::option::Option< + unsafe extern "C" fn( + arg1: *mut PlannerInfo, + arg2: *mut IndexPath, + arg3: f64, + arg4: *mut Cost, + arg5: *mut Cost, + arg6: *mut Selectivity, + arg7: *mut f64, + arg8: *mut f64, + ), + >, } impl Default for IndexOptInfo { fn default() -> Self { @@ -31872,7 +28671,7 @@ pub mod PLpgSQL_stmt_type { pub const PLPGSQL_STMT_COMMIT: Type = 25; pub const PLPGSQL_STMT_ROLLBACK: Type = 26; } -pub mod _bindgen_ty_22 { +pub mod _bindgen_ty_25 { pub type Type = ::core::ffi::c_uint; pub const PLPGSQL_RC_OK: Type = 0; pub const PLPGSQL_RC_EXIT: Type = 1; @@ -34374,6 +31173,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn haspos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_haspos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u32) } } @@ -34385,6 +31206,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 11u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 11u8, + val as u64, + ) + } + } + #[inline] pub fn pos(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -34396,6 +31239,28 @@ impl WordEntry { } } #[inline] + pub unsafe fn pos_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_pos_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( haspos: uint32, len: uint32, @@ -34462,6 +31327,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn length_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 12u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_length_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 12u8, + val as u64, + ) + } + } + #[inline] pub fn distance(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } } @@ -34473,6 +31360,28 @@ impl QueryOperand { } } #[inline] + pub unsafe fn distance_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 12usize, + 20u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_distance_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 12usize, + 20u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1(length: uint32, distance: uint32) -> __BindgenBitfieldUnit<[u8; 4usize]> { let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); __bindgen_bitfield_unit.set(0usize, 12u8, { @@ -34565,6 +31474,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn selected_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 0usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_selected_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 0usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn in_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } } @@ -34576,6 +31507,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn in__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 1usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_in_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 1usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn replace(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } } @@ -34587,6 +31540,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn replace_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 2usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_replace_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 2usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn repeated(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } } @@ -34598,6 +31573,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn repeated_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 3usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_repeated_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 3usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn skip(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } } @@ -34609,6 +31606,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn skip_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 4usize, + 1u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_skip_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 4usize, + 1u8, + val as u64, + ) + } + } + #[inline] pub fn unused(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) } } @@ -34620,6 +31639,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn unused_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 5usize, + 3u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_unused_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 5usize, + 3u8, + val as u64, + ) + } + } + #[inline] pub fn type_(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } } @@ -34631,6 +31672,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn type__raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 8usize, + 8u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_type_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 8usize, + 8u8, + val as u64, + ) + } + } + #[inline] pub fn len(&self) -> uint32 { unsafe { ::core::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } } @@ -34642,6 +31705,28 @@ impl HeadlineWordEntry { } } #[inline] + pub unsafe fn len_raw(this: *const Self) -> uint32 { + unsafe { + ::core::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get( + ::core::ptr::addr_of!((*this)._bitfield_1), + 16usize, + 16u8, + ) as u32) + } + } + #[inline] + pub unsafe fn set_len_raw(this: *mut Self, val: uint32) { + unsafe { + let val: u32 = ::core::mem::transmute(val); + <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set( + ::core::ptr::addr_of_mut!((*this)._bitfield_1), + 16usize, + 16u8, + val as u64, + ) + } + } + #[inline] pub fn new_bitfield_1( selected: uint32, in_: uint32, @@ -35591,11 +32676,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -35660,48 +32740,7 @@ pub struct SnapBuild { pub _address: u8, } #[pgrx_macros::pg_guard] -extern "C" { - #[link_name = "\u{1}__isoc99_fscanf"] - pub fn fscanf1( - __stream: *mut FILE, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_scanf"] - pub fn scanf1(__format: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_sscanf"] - pub fn sscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - ... - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vfscanf"] - pub fn vfscanf1( - __s: *mut FILE, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vscanf"] - pub fn vscanf1( - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - #[link_name = "\u{1}__isoc99_vsscanf"] - pub fn vsscanf1( - __s: *const ::core::ffi::c_char, - __format: *const ::core::ffi::c_char, - __arg: *mut __va_list_tag, - ) -> ::core::ffi::c_int; - pub fn alloca(__size: ::core::ffi::c_ulong) -> *mut ::core::ffi::c_void; - pub fn atexit(__func: ::core::option::Option) -> ::core::ffi::c_int; - pub fn at_quick_exit( - __func: ::core::option::Option, - ) -> ::core::ffi::c_int; - pub fn __memcmpeq( - __s1: *const ::core::ffi::c_void, - __s2: *const ::core::ffi::c_void, - __n: usize, - ) -> ::core::ffi::c_int; +unsafe extern "C" { pub fn ExceptionalCondition( conditionName: *const ::core::ffi::c_char, fileName: *const ::core::ffi::c_char, @@ -35721,6 +32760,7 @@ extern "C" { tail: *const ::core::ffi::c_char, ); pub fn canonicalize_path(path: *mut ::core::ffi::c_char); + pub fn canonicalize_path_enc(path: *mut ::core::ffi::c_char, encoding: ::core::ffi::c_int); pub fn make_native_path(filename: *mut ::core::ffi::c_char); pub fn cleanup_path(path: *mut ::core::ffi::c_char); pub fn path_contains_parent_reference(path: *const ::core::ffi::c_char) -> bool; @@ -35809,22 +32849,42 @@ extern "C" { pub fn pg_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_toupper(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; pub fn pg_ascii_tolower(ch: ::core::ffi::c_uchar) -> ::core::ffi::c_uchar; + pub fn pg_vsnprintf( + str_: *mut ::core::ffi::c_char, + count: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_snprintf( str_: *mut ::core::ffi::c_char, count: usize, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vsprintf( + str_: *mut ::core::ffi::c_char, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_sprintf( str_: *mut ::core::ffi::c_char, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vfprintf( + stream: *mut FILE, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_fprintf( stream: *mut FILE, fmt: *const ::core::ffi::c_char, ... ) -> ::core::ffi::c_int; + pub fn pg_vprintf( + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn pg_printf(fmt: *const ::core::ffi::c_char, ...) -> ::core::ffi::c_int; pub fn pg_strfromd( str_: *mut ::core::ffi::c_char, @@ -35846,210 +32906,6 @@ extern "C" { uid: *mut uid_t, gid: *mut gid_t, ) -> ::core::ffi::c_int; - pub fn __acos(__x: f64) -> f64; - pub fn __asin(__x: f64) -> f64; - pub fn __atan(__x: f64) -> f64; - pub fn __atan2(__y: f64, __x: f64) -> f64; - pub fn __cos(__x: f64) -> f64; - pub fn __sin(__x: f64) -> f64; - pub fn __tan(__x: f64) -> f64; - pub fn __cosh(__x: f64) -> f64; - pub fn __sinh(__x: f64) -> f64; - pub fn __tanh(__x: f64) -> f64; - pub fn __acosh(__x: f64) -> f64; - pub fn __asinh(__x: f64) -> f64; - pub fn __atanh(__x: f64) -> f64; - pub fn __exp(__x: f64) -> f64; - pub fn __frexp(__x: f64, __exponent: *mut ::core::ffi::c_int) -> f64; - pub fn __ldexp(__x: f64, __exponent: ::core::ffi::c_int) -> f64; - pub fn __log(__x: f64) -> f64; - pub fn __log10(__x: f64) -> f64; - pub fn __modf(__x: f64, __iptr: *mut f64) -> f64; - pub fn __expm1(__x: f64) -> f64; - pub fn __log1p(__x: f64) -> f64; - pub fn __logb(__x: f64) -> f64; - pub fn __exp2(__x: f64) -> f64; - pub fn __log2(__x: f64) -> f64; - pub fn __pow(__x: f64, __y: f64) -> f64; - pub fn __sqrt(__x: f64) -> f64; - pub fn __hypot(__x: f64, __y: f64) -> f64; - pub fn __cbrt(__x: f64) -> f64; - pub fn __ceil(__x: f64) -> f64; - pub fn __fabs(__x: f64) -> f64; - pub fn __floor(__x: f64) -> f64; - pub fn __fmod(__x: f64, __y: f64) -> f64; - pub fn __drem(__x: f64, __y: f64) -> f64; - pub fn __significand(__x: f64) -> f64; - pub fn __copysign(__x: f64, __y: f64) -> f64; - pub fn __nan(__tagb: *const ::core::ffi::c_char) -> f64; - pub fn __j0(arg1: f64) -> f64; - pub fn __j1(arg1: f64) -> f64; - pub fn __jn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __y0(arg1: f64) -> f64; - pub fn __y1(arg1: f64) -> f64; - pub fn __yn(arg1: ::core::ffi::c_int, arg2: f64) -> f64; - pub fn __erf(arg1: f64) -> f64; - pub fn __erfc(arg1: f64) -> f64; - pub fn __lgamma(arg1: f64) -> f64; - pub fn __tgamma(arg1: f64) -> f64; - pub fn __gamma(arg1: f64) -> f64; - pub fn __lgamma_r(arg1: f64, __signgamp: *mut ::core::ffi::c_int) -> f64; - pub fn __rint(__x: f64) -> f64; - pub fn __nextafter(__x: f64, __y: f64) -> f64; - pub fn __nexttoward(__x: f64, __y: u128) -> f64; - pub fn __remainder(__x: f64, __y: f64) -> f64; - pub fn __scalbn(__x: f64, __n: ::core::ffi::c_int) -> f64; - pub fn __ilogb(__x: f64) -> ::core::ffi::c_int; - pub fn __scalbln(__x: f64, __n: ::core::ffi::c_long) -> f64; - pub fn __nearbyint(__x: f64) -> f64; - pub fn __round(__x: f64) -> f64; - pub fn __trunc(__x: f64) -> f64; - pub fn __remquo(__x: f64, __y: f64, __quo: *mut ::core::ffi::c_int) -> f64; - pub fn __lrint(__x: f64) -> ::core::ffi::c_long; - pub fn __llrint(__x: f64) -> ::core::ffi::c_longlong; - pub fn __lround(__x: f64) -> ::core::ffi::c_long; - pub fn __llround(__x: f64) -> ::core::ffi::c_longlong; - pub fn __fdim(__x: f64, __y: f64) -> f64; - pub fn __fmax(__x: f64, __y: f64) -> f64; - pub fn __fmin(__x: f64, __y: f64) -> f64; - pub fn __fma(__x: f64, __y: f64, __z: f64) -> f64; - pub fn __scalb(__x: f64, __n: f64) -> f64; - pub fn __acosf(__x: f32) -> f32; - pub fn __asinf(__x: f32) -> f32; - pub fn __atanf(__x: f32) -> f32; - pub fn __atan2f(__y: f32, __x: f32) -> f32; - pub fn __cosf(__x: f32) -> f32; - pub fn __sinf(__x: f32) -> f32; - pub fn __tanf(__x: f32) -> f32; - pub fn __coshf(__x: f32) -> f32; - pub fn __sinhf(__x: f32) -> f32; - pub fn __tanhf(__x: f32) -> f32; - pub fn __acoshf(__x: f32) -> f32; - pub fn __asinhf(__x: f32) -> f32; - pub fn __atanhf(__x: f32) -> f32; - pub fn __expf(__x: f32) -> f32; - pub fn __frexpf(__x: f32, __exponent: *mut ::core::ffi::c_int) -> f32; - pub fn __ldexpf(__x: f32, __exponent: ::core::ffi::c_int) -> f32; - pub fn __logf(__x: f32) -> f32; - pub fn __log10f(__x: f32) -> f32; - pub fn __modff(__x: f32, __iptr: *mut f32) -> f32; - pub fn __expm1f(__x: f32) -> f32; - pub fn __log1pf(__x: f32) -> f32; - pub fn __logbf(__x: f32) -> f32; - pub fn __exp2f(__x: f32) -> f32; - pub fn __log2f(__x: f32) -> f32; - pub fn __powf(__x: f32, __y: f32) -> f32; - pub fn __sqrtf(__x: f32) -> f32; - pub fn __hypotf(__x: f32, __y: f32) -> f32; - pub fn __cbrtf(__x: f32) -> f32; - pub fn __ceilf(__x: f32) -> f32; - pub fn __fabsf(__x: f32) -> f32; - pub fn __floorf(__x: f32) -> f32; - pub fn __fmodf(__x: f32, __y: f32) -> f32; - pub fn __dremf(__x: f32, __y: f32) -> f32; - pub fn __significandf(__x: f32) -> f32; - pub fn __copysignf(__x: f32, __y: f32) -> f32; - pub fn __nanf(__tagb: *const ::core::ffi::c_char) -> f32; - pub fn __j0f(arg1: f32) -> f32; - pub fn __j1f(arg1: f32) -> f32; - pub fn __jnf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __y0f(arg1: f32) -> f32; - pub fn __y1f(arg1: f32) -> f32; - pub fn __ynf(arg1: ::core::ffi::c_int, arg2: f32) -> f32; - pub fn __erff(arg1: f32) -> f32; - pub fn __erfcf(arg1: f32) -> f32; - pub fn __lgammaf(arg1: f32) -> f32; - pub fn __tgammaf(arg1: f32) -> f32; - pub fn __gammaf(arg1: f32) -> f32; - pub fn __lgammaf_r(arg1: f32, __signgamp: *mut ::core::ffi::c_int) -> f32; - pub fn __rintf(__x: f32) -> f32; - pub fn __nextafterf(__x: f32, __y: f32) -> f32; - pub fn __nexttowardf(__x: f32, __y: u128) -> f32; - pub fn __remainderf(__x: f32, __y: f32) -> f32; - pub fn __scalbnf(__x: f32, __n: ::core::ffi::c_int) -> f32; - pub fn __ilogbf(__x: f32) -> ::core::ffi::c_int; - pub fn __scalblnf(__x: f32, __n: ::core::ffi::c_long) -> f32; - pub fn __nearbyintf(__x: f32) -> f32; - pub fn __roundf(__x: f32) -> f32; - pub fn __truncf(__x: f32) -> f32; - pub fn __remquof(__x: f32, __y: f32, __quo: *mut ::core::ffi::c_int) -> f32; - pub fn __lrintf(__x: f32) -> ::core::ffi::c_long; - pub fn __llrintf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __lroundf(__x: f32) -> ::core::ffi::c_long; - pub fn __llroundf(__x: f32) -> ::core::ffi::c_longlong; - pub fn __fdimf(__x: f32, __y: f32) -> f32; - pub fn __fmaxf(__x: f32, __y: f32) -> f32; - pub fn __fminf(__x: f32, __y: f32) -> f32; - pub fn __fmaf(__x: f32, __y: f32, __z: f32) -> f32; - pub fn __scalbf(__x: f32, __n: f32) -> f32; - pub fn __acosl(__x: u128) -> u128; - pub fn __asinl(__x: u128) -> u128; - pub fn __atanl(__x: u128) -> u128; - pub fn __atan2l(__y: u128, __x: u128) -> u128; - pub fn __cosl(__x: u128) -> u128; - pub fn __sinl(__x: u128) -> u128; - pub fn __tanl(__x: u128) -> u128; - pub fn __coshl(__x: u128) -> u128; - pub fn __sinhl(__x: u128) -> u128; - pub fn __tanhl(__x: u128) -> u128; - pub fn __acoshl(__x: u128) -> u128; - pub fn __asinhl(__x: u128) -> u128; - pub fn __atanhl(__x: u128) -> u128; - pub fn __expl(__x: u128) -> u128; - pub fn __frexpl(__x: u128, __exponent: *mut ::core::ffi::c_int) -> u128; - pub fn __ldexpl(__x: u128, __exponent: ::core::ffi::c_int) -> u128; - pub fn __logl(__x: u128) -> u128; - pub fn __log10l(__x: u128) -> u128; - pub fn __modfl(__x: u128, __iptr: *mut u128) -> u128; - pub fn __expm1l(__x: u128) -> u128; - pub fn __log1pl(__x: u128) -> u128; - pub fn __logbl(__x: u128) -> u128; - pub fn __exp2l(__x: u128) -> u128; - pub fn __log2l(__x: u128) -> u128; - pub fn __powl(__x: u128, __y: u128) -> u128; - pub fn __sqrtl(__x: u128) -> u128; - pub fn __hypotl(__x: u128, __y: u128) -> u128; - pub fn __cbrtl(__x: u128) -> u128; - pub fn __ceill(__x: u128) -> u128; - pub fn __fabsl(__x: u128) -> u128; - pub fn __floorl(__x: u128) -> u128; - pub fn __fmodl(__x: u128, __y: u128) -> u128; - pub fn __dreml(__x: u128, __y: u128) -> u128; - pub fn __significandl(__x: u128) -> u128; - pub fn __copysignl(__x: u128, __y: u128) -> u128; - pub fn __nanl(__tagb: *const ::core::ffi::c_char) -> u128; - pub fn __j0l(arg1: u128) -> u128; - pub fn __j1l(arg1: u128) -> u128; - pub fn __jnl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __y0l(arg1: u128) -> u128; - pub fn __y1l(arg1: u128) -> u128; - pub fn __ynl(arg1: ::core::ffi::c_int, arg2: u128) -> u128; - pub fn __erfl(arg1: u128) -> u128; - pub fn __erfcl(arg1: u128) -> u128; - pub fn __lgammal(arg1: u128) -> u128; - pub fn __tgammal(arg1: u128) -> u128; - pub fn __gammal(arg1: u128) -> u128; - pub fn __lgammal_r(arg1: u128, __signgamp: *mut ::core::ffi::c_int) -> u128; - pub fn __rintl(__x: u128) -> u128; - pub fn __nextafterl(__x: u128, __y: u128) -> u128; - pub fn __nexttowardl(__x: u128, __y: u128) -> u128; - pub fn __remainderl(__x: u128, __y: u128) -> u128; - pub fn __scalbnl(__x: u128, __n: ::core::ffi::c_int) -> u128; - pub fn __ilogbl(__x: u128) -> ::core::ffi::c_int; - pub fn __scalblnl(__x: u128, __n: ::core::ffi::c_long) -> u128; - pub fn __nearbyintl(__x: u128) -> u128; - pub fn __roundl(__x: u128) -> u128; - pub fn __truncl(__x: u128) -> u128; - pub fn __remquol(__x: u128, __y: u128, __quo: *mut ::core::ffi::c_int) -> u128; - pub fn __lrintl(__x: u128) -> ::core::ffi::c_long; - pub fn __llrintl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __lroundl(__x: u128) -> ::core::ffi::c_long; - pub fn __llroundl(__x: u128) -> ::core::ffi::c_longlong; - pub fn __fdiml(__x: u128, __y: u128) -> u128; - pub fn __fmaxl(__x: u128, __y: u128) -> u128; - pub fn __fminl(__x: u128, __y: u128) -> u128; - pub fn __fmal(__x: u128, __y: u128, __z: u128) -> u128; - pub fn __scalbl(__x: u128, __n: u128) -> u128; pub fn strlcat( dst: *mut ::core::ffi::c_char, src: *const ::core::ffi::c_char, @@ -36147,6 +33003,11 @@ extern "C" { pub fn initStringInfo(str_: StringInfo); pub fn resetStringInfo(str_: StringInfo); pub fn appendStringInfo(str_: StringInfo, fmt: *const ::core::ffi::c_char, ...); + pub fn appendStringInfoVA( + str_: StringInfo, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> ::core::ffi::c_int; pub fn appendStringInfoString(str_: StringInfo, s: *const ::core::ffi::c_char); pub fn appendStringInfoChar(str_: StringInfo, ch: ::core::ffi::c_char); pub fn appendStringInfoSpaces(str_: StringInfo, count: ::core::ffi::c_int); @@ -36307,6 +33168,12 @@ extern "C" { pub fn pnstrdup(in_: *const ::core::ffi::c_char, len: Size) -> *mut ::core::ffi::c_char; pub fn pchomp(in_: *const ::core::ffi::c_char) -> *mut ::core::ffi::c_char; pub fn psprintf(fmt: *const ::core::ffi::c_char, ...) -> *mut ::core::ffi::c_char; + pub fn pvsnprintf( + buf: *mut ::core::ffi::c_char, + len: usize, + fmt: *const ::core::ffi::c_char, + args: *mut __va_list_tag, + ) -> usize; pub static mut no_such_variable: ::core::ffi::c_int; pub fn outNode(str_: *mut StringInfoData, obj: *const ::core::ffi::c_void); pub fn outToken(str_: *mut StringInfoData, s: *const ::core::ffi::c_char); @@ -37342,10 +34209,6 @@ extern "C" { name: *const ::core::ffi::c_char, ) -> EphemeralNamedRelation; pub fn ENRMetadataGetTupDesc(enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; - pub fn crypt( - __key: *const ::core::ffi::c_char, - __salt: *const ::core::ffi::c_char, - ) -> *mut ::core::ffi::c_char; pub static mut max_files_per_process: ::core::ffi::c_int; pub static mut data_sync_retry: bool; pub static mut recovery_init_sync_method: ::core::ffi::c_int; @@ -39086,10 +35949,6 @@ extern "C" { val: *const int64, ); pub fn pgstat_progress_end_command(); - pub fn bindresvport6( - __sockfd: ::core::ffi::c_int, - __sock_in: *mut sockaddr_in6, - ) -> ::core::ffi::c_int; pub static mut pgstat_track_activities: bool; pub static mut pgstat_track_activity_query_size: ::core::ffi::c_int; pub static mut MyBEEntry: *mut PgBackendStatus; @@ -39608,6 +36467,12 @@ extern "C" { oidcol: AttrNumber, objectId: Oid, ) -> HeapTuple; + pub fn get_catalog_object_by_oid_extended( + catalog: Relation, + oidcol: AttrNumber, + objectId: Oid, + locktup: bool, + ) -> HeapTuple; pub fn getObjectDescription( object: *const ObjectAddress, missing_ok: bool, @@ -39734,6 +36599,13 @@ extern "C" { nforks: ::core::ffi::c_int, nblocks: *mut BlockNumber, ); + pub fn smgrtruncate2( + reln: SMgrRelation, + forknum: *mut ForkNumber::Type, + nforks: ::core::ffi::c_int, + old_nblocks: *mut BlockNumber, + nblocks: *mut BlockNumber, + ); pub fn smgrimmedsync(reln: SMgrRelation, forknum: ForkNumber::Type); pub fn smgrregistersync(reln: SMgrRelation, forknum: ForkNumber::Type); pub fn AtEOXact_SMgr(); @@ -44169,6 +41041,7 @@ extern "C" { pub fn pg_char_to_encoding_private(name: *const ::core::ffi::c_char) -> ::core::ffi::c_int; pub fn pg_encoding_to_char_private(encoding: ::core::ffi::c_int) -> *const ::core::ffi::c_char; pub fn pg_valid_server_encoding_id_private(encoding: ::core::ffi::c_int) -> ::core::ffi::c_int; + pub fn pg_encoding_set_invalid(encoding: ::core::ffi::c_int, dst: *mut ::core::ffi::c_char); pub fn pg_encoding_mblen( encoding: ::core::ffi::c_int, mbstr: *const ::core::ffi::c_char, @@ -46854,6 +43727,13 @@ extern "C" { targetTypmod: int32, constructName: *const ::core::ffi::c_char, ) -> *mut Node; + pub fn coerce_null_to_domain( + typid: Oid, + typmod: int32, + collation: Oid, + typlen: ::core::ffi::c_int, + typbyval: bool, + ) -> *mut Node; pub fn parser_coercion_errposition( pstate: *mut ParseState, coerce_location: ::core::ffi::c_int, @@ -52131,6 +49011,7 @@ extern "C" { ) -> *mut CatCList; pub fn ReleaseCatCacheList(list: *mut CatCList); pub fn ResetCatalogCaches(); + pub fn ResetCatalogCachesExt(debug_discard: bool); pub fn CatalogCacheFlushCatalog(catId: Oid); pub fn CatCacheInvalidate(cache: *mut CatCache, hashValue: uint32); pub fn PrepareToInvalidateCacheTuple( @@ -57346,6 +54227,14 @@ pub const XmlExprOp_IS_DOCUMENT: u32 = 7; pub const XmlOptionType_XMLOPTION_DOCUMENT: u32 = 0; #[deprecated(since = "0.12.0", note = "you want pg_sys::XmlOptionType::XMLOPTION_CONTENT")] pub const XmlOptionType_XMLOPTION_CONTENT: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_TID")] +pub const __pid_type_F_OWNER_TID: u32 = 0; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PID")] +pub const __pid_type_F_OWNER_PID: u32 = 1; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_PGRP")] +pub const __pid_type_F_OWNER_PGRP: u32 = 2; +#[deprecated(since = "0.12.0", note = "you want pg_sys::__pid_type::F_OWNER_GID")] +pub const __pid_type_F_OWNER_GID: u32 = 2; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_STREAM")] pub const __socket_type_SOCK_STREAM: u32 = 1; #[deprecated(since = "0.12.0", note = "you want pg_sys::__socket_type::SOCK_DGRAM")] diff --git a/pgrx-sql-entity-graph/Cargo.toml b/pgrx-sql-entity-graph/Cargo.toml index 34d168fac5..81ed540131 100644 --- a/pgrx-sql-entity-graph/Cargo.toml +++ b/pgrx-sql-entity-graph/Cargo.toml @@ -10,7 +10,7 @@ [package] name = "pgrx-sql-entity-graph" -version = "0.12.9" +version = "0.13.0" authors = ["PgCentral Foundation, Inc. "] license = "MIT" description = "Sql Entity Graph for `pgrx`" diff --git a/pgrx-tests/Cargo.toml b/pgrx-tests/Cargo.toml index 3ffb0123d6..7ce0c1aacc 100644 --- a/pgrx-tests/Cargo.toml +++ b/pgrx-tests/Cargo.toml @@ -10,7 +10,7 @@ [package] name = "pgrx-tests" -version = "0.12.9" +version = "0.13.0" authors = ["PgCentral Foundation, Inc. "] license = "MIT" description = "Test framework for 'pgrx'-based Postgres extensions" @@ -73,7 +73,7 @@ rand = "0.9.0" [dependencies.pgrx] # Not unified in workspace due to default-features key path = "../pgrx" default-features = false -version = "=0.12.9" +version = "=0.13.0" [dev-dependencies] eyre.workspace = true # testing functions that return `eyre::Result` diff --git a/pgrx/Cargo.toml b/pgrx/Cargo.toml index cac6cc7cd4..557fc023cb 100644 --- a/pgrx/Cargo.toml +++ b/pgrx/Cargo.toml @@ -10,7 +10,7 @@ [package] name = "pgrx" -version = "0.12.9" +version = "0.13.0" authors = ["PgCentral Foundation, Inc. "] license = "MIT" description = "pgrx: A Rust framework for creating Postgres extensions"