Created
February 18, 2017 14:12
-
-
Save anonymous/665c7a87777af7168553a3d59e10bc3a to your computer and use it in GitHub Desktop.
bindings.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* automatically generated by rust-bindgen */ | |
#[repr(C)] | |
pub struct __BindgenUnionField<T>(::std::marker::PhantomData<T>); | |
impl <T> __BindgenUnionField<T> { | |
#[inline] | |
pub fn new() -> Self { __BindgenUnionField(::std::marker::PhantomData) } | |
#[inline] | |
pub unsafe fn as_ref(&self) -> &T { ::std::mem::transmute(self) } | |
#[inline] | |
pub unsafe fn as_mut(&mut self) -> &mut T { ::std::mem::transmute(self) } | |
} | |
impl <T> ::std::default::Default for __BindgenUnionField<T> { | |
#[inline] | |
fn default() -> Self { Self::new() } | |
} | |
impl <T> ::std::clone::Clone for __BindgenUnionField<T> { | |
#[inline] | |
fn clone(&self) -> Self { Self::new() } | |
} | |
impl <T> ::std::marker::Copy for __BindgenUnionField<T> { } | |
impl <T> ::std::fmt::Debug for __BindgenUnionField<T> { | |
fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { | |
fmt.write_str("__BindgenUnionField") | |
} | |
} | |
pub const _STDIO_H: ::std::os::raw::c_uint = 1; | |
pub const _FEATURES_H: ::std::os::raw::c_uint = 1; | |
pub const _DEFAULT_SOURCE: ::std::os::raw::c_uint = 1; | |
pub const __USE_ISOC11: ::std::os::raw::c_uint = 1; | |
pub const __USE_ISOC99: ::std::os::raw::c_uint = 1; | |
pub const __USE_ISOC95: ::std::os::raw::c_uint = 1; | |
pub const __USE_POSIX_IMPLICITLY: ::std::os::raw::c_uint = 1; | |
pub const _POSIX_SOURCE: ::std::os::raw::c_uint = 1; | |
pub const _POSIX_C_SOURCE: ::std::os::raw::c_uint = 200809; | |
pub const __USE_POSIX: ::std::os::raw::c_uint = 1; | |
pub const __USE_POSIX2: ::std::os::raw::c_uint = 1; | |
pub const __USE_POSIX199309: ::std::os::raw::c_uint = 1; | |
pub const __USE_POSIX199506: ::std::os::raw::c_uint = 1; | |
pub const __USE_XOPEN2K: ::std::os::raw::c_uint = 1; | |
pub const __USE_XOPEN2K8: ::std::os::raw::c_uint = 1; | |
pub const _ATFILE_SOURCE: ::std::os::raw::c_uint = 1; | |
pub const __USE_MISC: ::std::os::raw::c_uint = 1; | |
pub const __USE_ATFILE: ::std::os::raw::c_uint = 1; | |
pub const __USE_FORTIFY_LEVEL: ::std::os::raw::c_uint = 0; | |
pub const _STDC_PREDEF_H: ::std::os::raw::c_uint = 1; | |
pub const __STDC_IEC_559__: ::std::os::raw::c_uint = 1; | |
pub const __STDC_IEC_559_COMPLEX__: ::std::os::raw::c_uint = 1; | |
pub const __STDC_ISO_10646__: ::std::os::raw::c_uint = 201505; | |
pub const __STDC_NO_THREADS__: ::std::os::raw::c_uint = 1; | |
pub const __GNU_LIBRARY__: ::std::os::raw::c_uint = 6; | |
pub const __GLIBC__: ::std::os::raw::c_uint = 2; | |
pub const __GLIBC_MINOR__: ::std::os::raw::c_uint = 23; | |
pub const _SYS_CDEFS_H: ::std::os::raw::c_uint = 1; | |
pub const __WORDSIZE: ::std::os::raw::c_uint = 64; | |
pub const __WORDSIZE_TIME64_COMPAT32: ::std::os::raw::c_uint = 1; | |
pub const __SYSCALL_WORDSIZE: ::std::os::raw::c_uint = 64; | |
pub const _BITS_TYPES_H: ::std::os::raw::c_uint = 1; | |
pub const _BITS_TYPESIZES_H: ::std::os::raw::c_uint = 1; | |
pub const __OFF_T_MATCHES_OFF64_T: ::std::os::raw::c_uint = 1; | |
pub const __INO_T_MATCHES_INO64_T: ::std::os::raw::c_uint = 1; | |
pub const __FD_SETSIZE: ::std::os::raw::c_uint = 1024; | |
pub const __FILE_defined: ::std::os::raw::c_uint = 1; | |
pub const ____FILE_defined: ::std::os::raw::c_uint = 1; | |
pub const _G_config_h: ::std::os::raw::c_uint = 1; | |
pub const ____mbstate_t_defined: ::std::os::raw::c_uint = 1; | |
pub const _G_HAVE_MMAP: ::std::os::raw::c_uint = 1; | |
pub const _G_HAVE_MREMAP: ::std::os::raw::c_uint = 1; | |
pub const _G_IO_IO_FILE_VERSION: ::std::os::raw::c_uint = 131073; | |
pub const _G_BUFSIZ: ::std::os::raw::c_uint = 8192; | |
pub const _IO_BUFSIZ: ::std::os::raw::c_uint = 8192; | |
pub const __GNUC_VA_LIST: ::std::os::raw::c_uint = 1; | |
pub const _IO_UNIFIED_JUMPTABLES: ::std::os::raw::c_uint = 1; | |
pub const EOF: ::std::os::raw::c_int = -1; | |
pub const _IOS_INPUT: ::std::os::raw::c_uint = 1; | |
pub const _IOS_OUTPUT: ::std::os::raw::c_uint = 2; | |
pub const _IOS_ATEND: ::std::os::raw::c_uint = 4; | |
pub const _IOS_APPEND: ::std::os::raw::c_uint = 8; | |
pub const _IOS_TRUNC: ::std::os::raw::c_uint = 16; | |
pub const _IOS_NOCREATE: ::std::os::raw::c_uint = 32; | |
pub const _IOS_NOREPLACE: ::std::os::raw::c_uint = 64; | |
pub const _IOS_BIN: ::std::os::raw::c_uint = 128; | |
pub const _IO_MAGIC: ::std::os::raw::c_uint = 4222418944; | |
pub const _OLD_STDIO_MAGIC: ::std::os::raw::c_uint = 4206624768; | |
pub const _IO_MAGIC_MASK: ::std::os::raw::c_uint = 4294901760; | |
pub const _IO_USER_BUF: ::std::os::raw::c_uint = 1; | |
pub const _IO_UNBUFFERED: ::std::os::raw::c_uint = 2; | |
pub const _IO_NO_READS: ::std::os::raw::c_uint = 4; | |
pub const _IO_NO_WRITES: ::std::os::raw::c_uint = 8; | |
pub const _IO_EOF_SEEN: ::std::os::raw::c_uint = 16; | |
pub const _IO_ERR_SEEN: ::std::os::raw::c_uint = 32; | |
pub const _IO_DELETE_DONT_CLOSE: ::std::os::raw::c_uint = 64; | |
pub const _IO_LINKED: ::std::os::raw::c_uint = 128; | |
pub const _IO_IN_BACKUP: ::std::os::raw::c_uint = 256; | |
pub const _IO_LINE_BUF: ::std::os::raw::c_uint = 512; | |
pub const _IO_TIED_PUT_GET: ::std::os::raw::c_uint = 1024; | |
pub const _IO_CURRENTLY_PUTTING: ::std::os::raw::c_uint = 2048; | |
pub const _IO_IS_APPENDING: ::std::os::raw::c_uint = 4096; | |
pub const _IO_IS_FILEBUF: ::std::os::raw::c_uint = 8192; | |
pub const _IO_BAD_SEEN: ::std::os::raw::c_uint = 16384; | |
pub const _IO_USER_LOCK: ::std::os::raw::c_uint = 32768; | |
pub const _IO_FLAGS2_MMAP: ::std::os::raw::c_uint = 1; | |
pub const _IO_FLAGS2_NOTCANCEL: ::std::os::raw::c_uint = 2; | |
pub const _IO_FLAGS2_USER_WBUF: ::std::os::raw::c_uint = 8; | |
pub const _IO_SKIPWS: ::std::os::raw::c_uint = 1; | |
pub const _IO_LEFT: ::std::os::raw::c_uint = 2; | |
pub const _IO_RIGHT: ::std::os::raw::c_uint = 4; | |
pub const _IO_INTERNAL: ::std::os::raw::c_uint = 8; | |
pub const _IO_DEC: ::std::os::raw::c_uint = 16; | |
pub const _IO_OCT: ::std::os::raw::c_uint = 32; | |
pub const _IO_HEX: ::std::os::raw::c_uint = 64; | |
pub const _IO_SHOWBASE: ::std::os::raw::c_uint = 128; | |
pub const _IO_SHOWPOINT: ::std::os::raw::c_uint = 256; | |
pub const _IO_UPPERCASE: ::std::os::raw::c_uint = 512; | |
pub const _IO_SHOWPOS: ::std::os::raw::c_uint = 1024; | |
pub const _IO_SCIENTIFIC: ::std::os::raw::c_uint = 2048; | |
pub const _IO_FIXED: ::std::os::raw::c_uint = 4096; | |
pub const _IO_UNITBUF: ::std::os::raw::c_uint = 8192; | |
pub const _IO_STDIO: ::std::os::raw::c_uint = 16384; | |
pub const _IO_DONT_CLOSE: ::std::os::raw::c_uint = 32768; | |
pub const _IO_BOOLALPHA: ::std::os::raw::c_uint = 65536; | |
pub const _IOFBF: ::std::os::raw::c_uint = 0; | |
pub const _IOLBF: ::std::os::raw::c_uint = 1; | |
pub const _IONBF: ::std::os::raw::c_uint = 2; | |
pub const BUFSIZ: ::std::os::raw::c_uint = 8192; | |
pub const SEEK_SET: ::std::os::raw::c_uint = 0; | |
pub const SEEK_CUR: ::std::os::raw::c_uint = 1; | |
pub const SEEK_END: ::std::os::raw::c_uint = 2; | |
pub const P_tmpdir: &'static [u8; 5usize] = b"/tmp\x00"; | |
pub const L_tmpnam: ::std::os::raw::c_uint = 20; | |
pub const TMP_MAX: ::std::os::raw::c_uint = 238328; | |
pub const FILENAME_MAX: ::std::os::raw::c_uint = 4096; | |
pub const L_ctermid: ::std::os::raw::c_uint = 9; | |
pub const FOPEN_MAX: ::std::os::raw::c_uint = 16; | |
pub const PG_DIAG_SEVERITY: u8 = b'S'; | |
pub const PG_DIAG_SQLSTATE: u8 = b'C'; | |
pub const PG_DIAG_MESSAGE_PRIMARY: u8 = b'M'; | |
pub const PG_DIAG_MESSAGE_DETAIL: u8 = b'D'; | |
pub const PG_DIAG_MESSAGE_HINT: u8 = b'H'; | |
pub const PG_DIAG_STATEMENT_POSITION: u8 = b'P'; | |
pub const PG_DIAG_INTERNAL_POSITION: u8 = b'p'; | |
pub const PG_DIAG_INTERNAL_QUERY: u8 = b'q'; | |
pub const PG_DIAG_CONTEXT: u8 = b'W'; | |
pub const PG_DIAG_SCHEMA_NAME: u8 = b's'; | |
pub const PG_DIAG_TABLE_NAME: u8 = b't'; | |
pub const PG_DIAG_COLUMN_NAME: u8 = b'c'; | |
pub const PG_DIAG_DATATYPE_NAME: u8 = b'd'; | |
pub const PG_DIAG_CONSTRAINT_NAME: u8 = b'n'; | |
pub const PG_DIAG_SOURCE_FILE: u8 = b'F'; | |
pub const PG_DIAG_SOURCE_LINE: u8 = b'L'; | |
pub const PG_DIAG_SOURCE_FUNCTION: u8 = b'R'; | |
pub const PG_COPYRES_ATTRS: ::std::os::raw::c_uint = 1; | |
pub const PG_COPYRES_TUPLES: ::std::os::raw::c_uint = 2; | |
pub const PG_COPYRES_EVENTS: ::std::os::raw::c_uint = 4; | |
pub const PG_COPYRES_NOTICEHOOKS: ::std::os::raw::c_uint = 8; | |
pub const PQnoPasswordSupplied: &'static [u8; 36usize] = | |
b"fe_sendauth: no password supplied\\n\x00"; | |
pub type __u_char = ::std::os::raw::c_uchar; | |
pub type __u_short = ::std::os::raw::c_ushort; | |
pub type __u_int = ::std::os::raw::c_uint; | |
pub type __u_long = ::std::os::raw::c_ulong; | |
pub type __int8_t = ::std::os::raw::c_char; | |
pub type __uint8_t = ::std::os::raw::c_uchar; | |
pub type __int16_t = ::std::os::raw::c_short; | |
pub type __uint16_t = ::std::os::raw::c_ushort; | |
pub type __int32_t = ::std::os::raw::c_int; | |
pub type __uint32_t = ::std::os::raw::c_uint; | |
pub type __int64_t = ::std::os::raw::c_long; | |
pub type __uint64_t = ::std::os::raw::c_ulong; | |
pub type __quad_t = ::std::os::raw::c_long; | |
pub type __u_quad_t = ::std::os::raw::c_ulong; | |
pub type __dev_t = ::std::os::raw::c_ulong; | |
pub type __uid_t = ::std::os::raw::c_uint; | |
pub type __gid_t = ::std::os::raw::c_uint; | |
pub type __ino_t = ::std::os::raw::c_ulong; | |
pub type __ino64_t = ::std::os::raw::c_ulong; | |
pub type __mode_t = ::std::os::raw::c_uint; | |
pub type __nlink_t = ::std::os::raw::c_ulong; | |
pub type __off_t = ::std::os::raw::c_long; | |
pub type __off64_t = ::std::os::raw::c_long; | |
pub type __pid_t = ::std::os::raw::c_int; | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct __fsid_t { | |
pub __val: [::std::os::raw::c_int; 2usize], | |
} | |
#[test] | |
fn bindgen_test_layout___fsid_t() { | |
assert_eq!(::std::mem::size_of::<__fsid_t>() , 8usize , concat ! ( | |
"Size of: " , stringify ! ( __fsid_t ) )); | |
assert_eq! (::std::mem::align_of::<__fsid_t>() , 4usize , concat ! ( | |
"Alignment of " , stringify ! ( __fsid_t ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __fsid_t ) ) . __val as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( __fsid_t ) , "::" , | |
stringify ! ( __val ) )); | |
} | |
impl Clone for __fsid_t { | |
fn clone(&self) -> Self { *self } | |
} | |
pub type __clock_t = ::std::os::raw::c_long; | |
pub type __rlim_t = ::std::os::raw::c_ulong; | |
pub type __rlim64_t = ::std::os::raw::c_ulong; | |
pub type __id_t = ::std::os::raw::c_uint; | |
pub type __time_t = ::std::os::raw::c_long; | |
pub type __useconds_t = ::std::os::raw::c_uint; | |
pub type __suseconds_t = ::std::os::raw::c_long; | |
pub type __daddr_t = ::std::os::raw::c_int; | |
pub type __key_t = ::std::os::raw::c_int; | |
pub type __clockid_t = ::std::os::raw::c_int; | |
pub type __timer_t = *mut ::std::os::raw::c_void; | |
pub type __blksize_t = ::std::os::raw::c_long; | |
pub type __blkcnt_t = ::std::os::raw::c_long; | |
pub type __blkcnt64_t = ::std::os::raw::c_long; | |
pub type __fsblkcnt_t = ::std::os::raw::c_ulong; | |
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; | |
pub type __fsfilcnt_t = ::std::os::raw::c_ulong; | |
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; | |
pub type __fsword_t = ::std::os::raw::c_long; | |
pub type __ssize_t = ::std::os::raw::c_long; | |
pub type __syscall_slong_t = ::std::os::raw::c_long; | |
pub type __syscall_ulong_t = ::std::os::raw::c_ulong; | |
pub type __loff_t = __off64_t; | |
pub type __qaddr_t = *mut __quad_t; | |
pub type __caddr_t = *mut ::std::os::raw::c_char; | |
pub type __intptr_t = ::std::os::raw::c_long; | |
pub type __socklen_t = ::std::os::raw::c_uint; | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct _IO_FILE { | |
pub _flags: ::std::os::raw::c_int, | |
pub _IO_read_ptr: *mut ::std::os::raw::c_char, | |
pub _IO_read_end: *mut ::std::os::raw::c_char, | |
pub _IO_read_base: *mut ::std::os::raw::c_char, | |
pub _IO_write_base: *mut ::std::os::raw::c_char, | |
pub _IO_write_ptr: *mut ::std::os::raw::c_char, | |
pub _IO_write_end: *mut ::std::os::raw::c_char, | |
pub _IO_buf_base: *mut ::std::os::raw::c_char, | |
pub _IO_buf_end: *mut ::std::os::raw::c_char, | |
pub _IO_save_base: *mut ::std::os::raw::c_char, | |
pub _IO_backup_base: *mut ::std::os::raw::c_char, | |
pub _IO_save_end: *mut ::std::os::raw::c_char, | |
pub _markers: *mut _IO_marker, | |
pub _chain: *mut _IO_FILE, | |
pub _fileno: ::std::os::raw::c_int, | |
pub _flags2: ::std::os::raw::c_int, | |
pub _old_offset: __off_t, | |
pub _cur_column: ::std::os::raw::c_ushort, | |
pub _vtable_offset: ::std::os::raw::c_char, | |
pub _shortbuf: [::std::os::raw::c_char; 1usize], | |
pub _lock: *mut _IO_lock_t, | |
pub _offset: __off64_t, | |
pub __pad1: *mut ::std::os::raw::c_void, | |
pub __pad2: *mut ::std::os::raw::c_void, | |
pub __pad3: *mut ::std::os::raw::c_void, | |
pub __pad4: *mut ::std::os::raw::c_void, | |
pub __pad5: usize, | |
pub _mode: ::std::os::raw::c_int, | |
pub _unused2: [::std::os::raw::c_char; 20usize], | |
} | |
#[test] | |
fn bindgen_test_layout__IO_FILE() { | |
assert_eq!(::std::mem::size_of::<_IO_FILE>() , 216usize , concat ! ( | |
"Size of: " , stringify ! ( _IO_FILE ) )); | |
assert_eq! (::std::mem::align_of::<_IO_FILE>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( _IO_FILE ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _flags as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _flags ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_read_ptr as * const _ | |
as usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_read_ptr ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_read_end as * const _ | |
as usize } , 16usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_read_end ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_read_base as * const _ | |
as usize } , 24usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_read_base ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_write_base as * const | |
_ as usize } , 32usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_write_base ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_write_ptr as * const _ | |
as usize } , 40usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_write_ptr ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_write_end as * const _ | |
as usize } , 48usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_write_end ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_base as * const _ | |
as usize } , 56usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_buf_base ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_buf_end as * const _ | |
as usize } , 64usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_buf_end ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_save_base as * const _ | |
as usize } , 72usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_save_base ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_backup_base as * const | |
_ as usize } , 80usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_backup_base ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _IO_save_end as * const _ | |
as usize } , 88usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _IO_save_end ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _markers as * const _ as | |
usize } , 96usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _markers ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _chain as * const _ as | |
usize } , 104usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _chain ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _fileno as * const _ as | |
usize } , 112usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _fileno ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _flags2 as * const _ as | |
usize } , 116usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _flags2 ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _old_offset as * const _ | |
as usize } , 120usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _old_offset ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _cur_column as * const _ | |
as usize } , 128usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _cur_column ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _vtable_offset as * const | |
_ as usize } , 130usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _vtable_offset ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _shortbuf as * const _ as | |
usize } , 131usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _shortbuf ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _lock as * const _ as | |
usize } , 136usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _lock ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _offset as * const _ as | |
usize } , 144usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _offset ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . __pad1 as * const _ as | |
usize } , 152usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( __pad1 ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . __pad2 as * const _ as | |
usize } , 160usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( __pad2 ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . __pad3 as * const _ as | |
usize } , 168usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( __pad3 ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . __pad4 as * const _ as | |
usize } , 176usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( __pad4 ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . __pad5 as * const _ as | |
usize } , 184usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( __pad5 ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _mode as * const _ as | |
usize } , 192usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _mode ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_FILE ) ) . _unused2 as * const _ as | |
usize } , 196usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_FILE ) , "::" , | |
stringify ! ( _unused2 ) )); | |
} | |
impl Clone for _IO_FILE { | |
fn clone(&self) -> Self { *self } | |
} | |
pub type FILE = _IO_FILE; | |
pub type __FILE = _IO_FILE; | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct __mbstate_t { | |
pub __count: ::std::os::raw::c_int, | |
pub __value: __mbstate_t__bindgen_ty_1, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct __mbstate_t__bindgen_ty_1 { | |
pub __wch: __BindgenUnionField<::std::os::raw::c_uint>, | |
pub __wchb: __BindgenUnionField<[::std::os::raw::c_char; 4usize]>, | |
pub bindgen_union_field: u32, | |
} | |
#[test] | |
fn bindgen_test_layout___mbstate_t__bindgen_ty_1() { | |
assert_eq!(::std::mem::size_of::<__mbstate_t__bindgen_ty_1>() , 4usize , | |
concat ! ( | |
"Size of: " , stringify ! ( __mbstate_t__bindgen_ty_1 ) )); | |
assert_eq! (::std::mem::align_of::<__mbstate_t__bindgen_ty_1>() , 4usize , | |
concat ! ( | |
"Alignment of " , stringify ! ( __mbstate_t__bindgen_ty_1 ) | |
)); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __mbstate_t__bindgen_ty_1 ) ) . __wch as | |
* const _ as usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( | |
__mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wch ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __mbstate_t__bindgen_ty_1 ) ) . __wchb as | |
* const _ as usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( | |
__mbstate_t__bindgen_ty_1 ) , "::" , stringify ! ( __wchb ) | |
)); | |
} | |
impl Clone for __mbstate_t__bindgen_ty_1 { | |
fn clone(&self) -> Self { *self } | |
} | |
#[test] | |
fn bindgen_test_layout___mbstate_t() { | |
assert_eq!(::std::mem::size_of::<__mbstate_t>() , 8usize , concat ! ( | |
"Size of: " , stringify ! ( __mbstate_t ) )); | |
assert_eq! (::std::mem::align_of::<__mbstate_t>() , 4usize , concat ! ( | |
"Alignment of " , stringify ! ( __mbstate_t ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __mbstate_t ) ) . __count as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( __mbstate_t ) , "::" , | |
stringify ! ( __count ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __mbstate_t ) ) . __value as * const _ as | |
usize } , 4usize , concat ! ( | |
"Alignment of field: " , stringify ! ( __mbstate_t ) , "::" , | |
stringify ! ( __value ) )); | |
} | |
impl Clone for __mbstate_t { | |
fn clone(&self) -> Self { *self } | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct _G_fpos_t { | |
pub __pos: __off_t, | |
pub __state: __mbstate_t, | |
} | |
#[test] | |
fn bindgen_test_layout__G_fpos_t() { | |
assert_eq!(::std::mem::size_of::<_G_fpos_t>() , 16usize , concat ! ( | |
"Size of: " , stringify ! ( _G_fpos_t ) )); | |
assert_eq! (::std::mem::align_of::<_G_fpos_t>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( _G_fpos_t ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _G_fpos_t ) ) . __pos as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _G_fpos_t ) , "::" , | |
stringify ! ( __pos ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _G_fpos_t ) ) . __state as * const _ as | |
usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _G_fpos_t ) , "::" , | |
stringify ! ( __state ) )); | |
} | |
impl Clone for _G_fpos_t { | |
fn clone(&self) -> Self { *self } | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct _G_fpos64_t { | |
pub __pos: __off64_t, | |
pub __state: __mbstate_t, | |
} | |
#[test] | |
fn bindgen_test_layout__G_fpos64_t() { | |
assert_eq!(::std::mem::size_of::<_G_fpos64_t>() , 16usize , concat ! ( | |
"Size of: " , stringify ! ( _G_fpos64_t ) )); | |
assert_eq! (::std::mem::align_of::<_G_fpos64_t>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( _G_fpos64_t ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _G_fpos64_t ) ) . __pos as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _G_fpos64_t ) , "::" , | |
stringify ! ( __pos ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _G_fpos64_t ) ) . __state as * const _ as | |
usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _G_fpos64_t ) , "::" , | |
stringify ! ( __state ) )); | |
} | |
impl Clone for _G_fpos64_t { | |
fn clone(&self) -> Self { *self } | |
} | |
pub type va_list = __builtin_va_list; | |
pub type __gnuc_va_list = __builtin_va_list; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _IO_jump_t([u8; 0]); | |
pub type _IO_lock_t = ::std::os::raw::c_void; | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct _IO_marker { | |
pub _next: *mut _IO_marker, | |
pub _sbuf: *mut _IO_FILE, | |
pub _pos: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout__IO_marker() { | |
assert_eq!(::std::mem::size_of::<_IO_marker>() , 24usize , concat ! ( | |
"Size of: " , stringify ! ( _IO_marker ) )); | |
assert_eq! (::std::mem::align_of::<_IO_marker>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( _IO_marker ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_marker ) ) . _next as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_marker ) , "::" , | |
stringify ! ( _next ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_marker ) ) . _sbuf as * const _ as | |
usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_marker ) , "::" , | |
stringify ! ( _sbuf ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _IO_marker ) ) . _pos as * const _ as | |
usize } , 16usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _IO_marker ) , "::" , | |
stringify ! ( _pos ) )); | |
} | |
impl Clone for _IO_marker { | |
fn clone(&self) -> Self { *self } | |
} | |
#[repr(u32)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub enum __codecvt_result { | |
__codecvt_ok = 0, | |
__codecvt_partial = 1, | |
__codecvt_error = 2, | |
__codecvt_noconv = 3, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct _IO_FILE_plus([u8; 0]); | |
extern "C" { | |
#[link_name = "_Z14_IO_2_1_stdin_"] | |
pub static mut _IO_2_1_stdin_: _IO_FILE_plus; | |
} | |
extern "C" { | |
#[link_name = "_Z15_IO_2_1_stdout_"] | |
pub static mut _IO_2_1_stdout_: _IO_FILE_plus; | |
} | |
extern "C" { | |
#[link_name = "_Z15_IO_2_1_stderr_"] | |
pub static mut _IO_2_1_stderr_: _IO_FILE_plus; | |
} | |
pub type __io_read_fn = | |
::std::option::Option<unsafe extern "C" fn(__cookie: | |
*mut ::std::os::raw::c_void, | |
__buf: | |
*mut ::std::os::raw::c_char, | |
__nbytes: usize) -> __ssize_t>; | |
pub type __io_write_fn = | |
::std::option::Option<unsafe extern "C" fn(__cookie: | |
*mut ::std::os::raw::c_void, | |
__buf: | |
*const ::std::os::raw::c_char, | |
__n: usize) -> __ssize_t>; | |
pub type __io_seek_fn = | |
::std::option::Option<unsafe extern "C" fn(__cookie: | |
*mut ::std::os::raw::c_void, | |
__pos: *mut __off64_t, | |
__w: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int>; | |
pub type __io_close_fn = | |
::std::option::Option<unsafe extern "C" fn(__cookie: | |
*mut ::std::os::raw::c_void) | |
-> ::std::os::raw::c_int>; | |
extern "C" { | |
#[link_name = "_Z11__underflow"] | |
pub fn __underflow(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7__uflow"] | |
pub fn __uflow(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z10__overflow"] | |
pub fn __overflow(arg1: *mut _IO_FILE, arg2: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8_IO_getc"] | |
pub fn _IO_getc(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8_IO_putc"] | |
pub fn _IO_putc(__c: ::std::os::raw::c_int, __fp: *mut _IO_FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8_IO_feof"] | |
pub fn _IO_feof(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z10_IO_ferror"] | |
pub fn _IO_ferror(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z16_IO_peekc_locked"] | |
pub fn _IO_peekc_locked(__fp: *mut _IO_FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z13_IO_flockfile"] | |
pub fn _IO_flockfile(arg1: *mut _IO_FILE); | |
} | |
extern "C" { | |
#[link_name = "_Z15_IO_funlockfile"] | |
pub fn _IO_funlockfile(arg1: *mut _IO_FILE); | |
} | |
extern "C" { | |
#[link_name = "_Z16_IO_ftrylockfile"] | |
pub fn _IO_ftrylockfile(arg1: *mut _IO_FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11_IO_vfscanf"] | |
pub fn _IO_vfscanf(arg1: *mut _IO_FILE, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag, | |
arg4: *mut ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z12_IO_vfprintf"] | |
pub fn _IO_vfprintf(arg1: *mut _IO_FILE, | |
arg2: *const ::std::os::raw::c_char, | |
arg3: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8_IO_padn"] | |
pub fn _IO_padn(arg1: *mut _IO_FILE, arg2: ::std::os::raw::c_int, | |
arg3: __ssize_t) -> __ssize_t; | |
} | |
extern "C" { | |
#[link_name = "_Z9_IO_sgetn"] | |
pub fn _IO_sgetn(arg1: *mut _IO_FILE, arg2: *mut ::std::os::raw::c_void, | |
arg3: usize) -> usize; | |
} | |
extern "C" { | |
#[link_name = "_Z11_IO_seekoff"] | |
pub fn _IO_seekoff(arg1: *mut _IO_FILE, arg2: __off64_t, | |
arg3: ::std::os::raw::c_int, | |
arg4: ::std::os::raw::c_int) -> __off64_t; | |
} | |
extern "C" { | |
#[link_name = "_Z11_IO_seekpos"] | |
pub fn _IO_seekpos(arg1: *mut _IO_FILE, arg2: __off64_t, | |
arg3: ::std::os::raw::c_int) -> __off64_t; | |
} | |
extern "C" { | |
#[link_name = "_Z20_IO_free_backup_area"] | |
pub fn _IO_free_backup_area(arg1: *mut _IO_FILE); | |
} | |
pub type off_t = __off_t; | |
pub type fpos_t = _G_fpos_t; | |
extern "C" { | |
#[link_name = "_Z5stdin"] | |
pub static mut stdin: *mut _IO_FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z6stdout"] | |
pub static mut stdout: *mut _IO_FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z6stderr"] | |
pub static mut stderr: *mut _IO_FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z6remove"] | |
pub fn remove(__filename: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6rename"] | |
pub fn rename(__old: *const ::std::os::raw::c_char, | |
__new: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8renameat"] | |
pub fn renameat(__oldfd: ::std::os::raw::c_int, | |
__old: *const ::std::os::raw::c_char, | |
__newfd: ::std::os::raw::c_int, | |
__new: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7tmpfile"] | |
pub fn tmpfile() -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z6tmpnam"] | |
pub fn tmpnam(__s: *mut ::std::os::raw::c_char) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z8tmpnam_r"] | |
pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z7tempnam"] | |
pub fn tempnam(__dir: *const ::std::os::raw::c_char, | |
__pfx: *const ::std::os::raw::c_char) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z6fclose"] | |
pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6fflush"] | |
pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z15fflush_unlocked"] | |
pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z5fopen"] | |
pub fn fopen(__filename: *const ::std::os::raw::c_char, | |
__modes: *const ::std::os::raw::c_char) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z7freopen"] | |
pub fn freopen(__filename: *const ::std::os::raw::c_char, | |
__modes: *const ::std::os::raw::c_char, | |
__stream: *mut FILE) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z6fdopen"] | |
pub fn fdopen(__fd: ::std::os::raw::c_int, | |
__modes: *const ::std::os::raw::c_char) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z8fmemopen"] | |
pub fn fmemopen(__s: *mut ::std::os::raw::c_void, __len: usize, | |
__modes: *const ::std::os::raw::c_char) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z14open_memstream"] | |
pub fn open_memstream(__bufloc: *mut *mut ::std::os::raw::c_char, | |
__sizeloc: *mut usize) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z6setbuf"] | |
pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char); | |
} | |
extern "C" { | |
#[link_name = "_Z7setvbuf"] | |
pub fn setvbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, | |
__modes: ::std::os::raw::c_int, __n: usize) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9setbuffer"] | |
pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, | |
__size: usize); | |
} | |
extern "C" { | |
#[link_name = "_Z10setlinebuf"] | |
pub fn setlinebuf(__stream: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "_Z7fprintf"] | |
pub fn fprintf(__stream: *mut FILE, | |
__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6printf"] | |
pub fn printf(__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7sprintf"] | |
pub fn sprintf(__s: *mut ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8vfprintf"] | |
pub fn vfprintf(__s: *mut FILE, __format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7vprintf"] | |
pub fn vprintf(__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8vsprintf"] | |
pub fn vsprintf(__s: *mut ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8snprintf"] | |
pub fn snprintf(__s: *mut ::std::os::raw::c_char, __maxlen: usize, | |
__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9vsnprintf"] | |
pub fn vsnprintf(__s: *mut ::std::os::raw::c_char, __maxlen: usize, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8vdprintf"] | |
pub fn vdprintf(__fd: ::std::os::raw::c_int, | |
__fmt: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7dprintf"] | |
pub fn dprintf(__fd: ::std::os::raw::c_int, | |
__fmt: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6fscanf"] | |
pub fn fscanf(__stream: *mut FILE, | |
__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z5scanf"] | |
pub fn scanf(__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6sscanf"] | |
pub fn sscanf(__s: *const ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "__isoc99_fscanf"] | |
pub fn fscanf1(__stream: *mut FILE, | |
__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "__isoc99_scanf"] | |
pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "__isoc99_sscanf"] | |
pub fn sscanf1(__s: *const ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, ...) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7vfscanf"] | |
pub fn vfscanf(__s: *mut FILE, __format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6vscanf"] | |
pub fn vscanf(__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7vsscanf"] | |
pub fn vsscanf(__s: *const ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "__isoc99_vfscanf"] | |
pub fn vfscanf1(__s: *mut FILE, __format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "__isoc99_vscanf"] | |
pub fn vscanf1(__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "__isoc99_vsscanf"] | |
pub fn vsscanf1(__s: *const ::std::os::raw::c_char, | |
__format: *const ::std::os::raw::c_char, | |
__arg: *mut __va_list_tag) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z5fgetc"] | |
pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z4getc"] | |
pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7getchar"] | |
pub fn getchar() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z13getc_unlocked"] | |
pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z16getchar_unlocked"] | |
pub fn getchar_unlocked() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z14fgetc_unlocked"] | |
pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z5fputc"] | |
pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z4putc"] | |
pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7putchar"] | |
pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z14fputc_unlocked"] | |
pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z13putc_unlocked"] | |
pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z16putchar_unlocked"] | |
pub fn putchar_unlocked(__c: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z4getw"] | |
pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z4putw"] | |
pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z5fgets"] | |
pub fn fgets(__s: *mut ::std::os::raw::c_char, __n: ::std::os::raw::c_int, | |
__stream: *mut FILE) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z10__getdelim"] | |
pub fn __getdelim(__lineptr: *mut *mut ::std::os::raw::c_char, | |
__n: *mut usize, __delimiter: ::std::os::raw::c_int, | |
__stream: *mut FILE) -> __ssize_t; | |
} | |
extern "C" { | |
#[link_name = "_Z8getdelim"] | |
pub fn getdelim(__lineptr: *mut *mut ::std::os::raw::c_char, | |
__n: *mut usize, __delimiter: ::std::os::raw::c_int, | |
__stream: *mut FILE) -> __ssize_t; | |
} | |
extern "C" { | |
#[link_name = "_Z7getline"] | |
pub fn getline(__lineptr: *mut *mut ::std::os::raw::c_char, | |
__n: *mut usize, __stream: *mut FILE) -> __ssize_t; | |
} | |
extern "C" { | |
#[link_name = "_Z5fputs"] | |
pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z4puts"] | |
pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6ungetc"] | |
pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z5fread"] | |
pub fn fread(__ptr: *mut ::std::os::raw::c_void, __size: usize, | |
__n: usize, __stream: *mut FILE) -> usize; | |
} | |
extern "C" { | |
#[link_name = "_Z6fwrite"] | |
pub fn fwrite(__ptr: *const ::std::os::raw::c_void, __size: usize, | |
__n: usize, __s: *mut FILE) -> usize; | |
} | |
extern "C" { | |
#[link_name = "_Z14fread_unlocked"] | |
pub fn fread_unlocked(__ptr: *mut ::std::os::raw::c_void, __size: usize, | |
__n: usize, __stream: *mut FILE) -> usize; | |
} | |
extern "C" { | |
#[link_name = "_Z15fwrite_unlocked"] | |
pub fn fwrite_unlocked(__ptr: *const ::std::os::raw::c_void, | |
__size: usize, __n: usize, __stream: *mut FILE) | |
-> usize; | |
} | |
extern "C" { | |
#[link_name = "_Z5fseek"] | |
pub fn fseek(__stream: *mut FILE, __off: ::std::os::raw::c_long, | |
__whence: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z5ftell"] | |
pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long; | |
} | |
extern "C" { | |
#[link_name = "_Z6rewind"] | |
pub fn rewind(__stream: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "_Z6fseeko"] | |
pub fn fseeko(__stream: *mut FILE, __off: __off_t, | |
__whence: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6ftello"] | |
pub fn ftello(__stream: *mut FILE) -> __off_t; | |
} | |
extern "C" { | |
#[link_name = "_Z7fgetpos"] | |
pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7fsetpos"] | |
pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8clearerr"] | |
pub fn clearerr(__stream: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "_Z4feof"] | |
pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6ferror"] | |
pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z17clearerr_unlocked"] | |
pub fn clearerr_unlocked(__stream: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "_Z13feof_unlocked"] | |
pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z15ferror_unlocked"] | |
pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6perror"] | |
pub fn perror(__s: *const ::std::os::raw::c_char); | |
} | |
extern "C" { | |
#[link_name = "_Z8sys_nerr"] | |
pub static mut sys_nerr: ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11sys_errlist"] | |
pub static mut sys_errlist: [*const ::std::os::raw::c_char; 0usize]; | |
} | |
extern "C" { | |
#[link_name = "_Z6fileno"] | |
pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z15fileno_unlocked"] | |
pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z5popen"] | |
pub fn popen(__command: *const ::std::os::raw::c_char, | |
__modes: *const ::std::os::raw::c_char) -> *mut FILE; | |
} | |
extern "C" { | |
#[link_name = "_Z6pclose"] | |
pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7ctermid"] | |
pub fn ctermid(__s: *mut ::std::os::raw::c_char) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z9flockfile"] | |
pub fn flockfile(__stream: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "_Z12ftrylockfile"] | |
pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11funlockfile"] | |
pub fn funlockfile(__stream: *mut FILE); | |
} | |
pub type Oid = ::std::os::raw::c_uint; | |
pub type pg_int64 = ::std::os::raw::c_long; | |
#[repr(u32)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub enum ConnStatusType { | |
CONNECTION_OK = 0, | |
CONNECTION_BAD = 1, | |
CONNECTION_STARTED = 2, | |
CONNECTION_MADE = 3, | |
CONNECTION_AWAITING_RESPONSE = 4, | |
CONNECTION_AUTH_OK = 5, | |
CONNECTION_SETENV = 6, | |
CONNECTION_SSL_STARTUP = 7, | |
CONNECTION_NEEDED = 8, | |
} | |
#[repr(u32)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub enum PostgresPollingStatusType { | |
PGRES_POLLING_FAILED = 0, | |
PGRES_POLLING_READING = 1, | |
PGRES_POLLING_WRITING = 2, | |
PGRES_POLLING_OK = 3, | |
PGRES_POLLING_ACTIVE = 4, | |
} | |
#[repr(u32)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub enum ExecStatusType { | |
PGRES_EMPTY_QUERY = 0, | |
PGRES_COMMAND_OK = 1, | |
PGRES_TUPLES_OK = 2, | |
PGRES_COPY_OUT = 3, | |
PGRES_COPY_IN = 4, | |
PGRES_BAD_RESPONSE = 5, | |
PGRES_NONFATAL_ERROR = 6, | |
PGRES_FATAL_ERROR = 7, | |
PGRES_COPY_BOTH = 8, | |
PGRES_SINGLE_TUPLE = 9, | |
} | |
#[repr(u32)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub enum PGTransactionStatusType { | |
PQTRANS_IDLE = 0, | |
PQTRANS_ACTIVE = 1, | |
PQTRANS_INTRANS = 2, | |
PQTRANS_INERROR = 3, | |
PQTRANS_UNKNOWN = 4, | |
} | |
#[repr(u32)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub enum PGVerbosity { | |
PQERRORS_TERSE = 0, | |
PQERRORS_DEFAULT = 1, | |
PQERRORS_VERBOSE = 2, | |
} | |
#[repr(u32)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub enum PGPing { | |
PQPING_OK = 0, | |
PQPING_REJECT = 1, | |
PQPING_NO_RESPONSE = 2, | |
PQPING_NO_ATTEMPT = 3, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct pg_conn([u8; 0]); | |
pub type PGconn = pg_conn; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct pg_result([u8; 0]); | |
pub type PGresult = pg_result; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct pg_cancel([u8; 0]); | |
pub type PGcancel = pg_cancel; | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct pgNotify { | |
pub relname: *mut ::std::os::raw::c_char, | |
pub be_pid: ::std::os::raw::c_int, | |
pub extra: *mut ::std::os::raw::c_char, | |
pub next: *mut pgNotify, | |
} | |
#[test] | |
fn bindgen_test_layout_pgNotify() { | |
assert_eq!(::std::mem::size_of::<pgNotify>() , 32usize , concat ! ( | |
"Size of: " , stringify ! ( pgNotify ) )); | |
assert_eq! (::std::mem::align_of::<pgNotify>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( pgNotify ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgNotify ) ) . relname as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgNotify ) , "::" , | |
stringify ! ( relname ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgNotify ) ) . be_pid as * const _ as | |
usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgNotify ) , "::" , | |
stringify ! ( be_pid ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgNotify ) ) . extra as * const _ as | |
usize } , 16usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgNotify ) , "::" , | |
stringify ! ( extra ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgNotify ) ) . next as * const _ as usize | |
} , 24usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgNotify ) , "::" , | |
stringify ! ( next ) )); | |
} | |
impl Clone for pgNotify { | |
fn clone(&self) -> Self { *self } | |
} | |
pub type PGnotify = pgNotify; | |
pub type PQnoticeReceiver = | |
::std::option::Option<unsafe extern "C" fn(arg: | |
*mut ::std::os::raw::c_void, | |
res: *const PGresult)>; | |
pub type PQnoticeProcessor = | |
::std::option::Option<unsafe extern "C" fn(arg: | |
*mut ::std::os::raw::c_void, | |
message: | |
*const ::std::os::raw::c_char)>; | |
pub type pqbool = ::std::os::raw::c_char; | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct _PQprintOpt { | |
pub header: pqbool, | |
pub align: pqbool, | |
pub standard: pqbool, | |
pub html3: pqbool, | |
pub expanded: pqbool, | |
pub pager: pqbool, | |
pub fieldSep: *mut ::std::os::raw::c_char, | |
pub tableOpt: *mut ::std::os::raw::c_char, | |
pub caption: *mut ::std::os::raw::c_char, | |
pub fieldName: *mut *mut ::std::os::raw::c_char, | |
} | |
#[test] | |
fn bindgen_test_layout__PQprintOpt() { | |
assert_eq!(::std::mem::size_of::<_PQprintOpt>() , 40usize , concat ! ( | |
"Size of: " , stringify ! ( _PQprintOpt ) )); | |
assert_eq! (::std::mem::align_of::<_PQprintOpt>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( _PQprintOpt ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . header as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( header ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . align as * const _ as | |
usize } , 1usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( align ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . standard as * const _ | |
as usize } , 2usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( standard ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . html3 as * const _ as | |
usize } , 3usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( html3 ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . expanded as * const _ | |
as usize } , 4usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( expanded ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . pager as * const _ as | |
usize } , 5usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( pager ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . fieldSep as * const _ | |
as usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( fieldSep ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . tableOpt as * const _ | |
as usize } , 16usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( tableOpt ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . caption as * const _ as | |
usize } , 24usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( caption ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQprintOpt ) ) . fieldName as * const _ | |
as usize } , 32usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQprintOpt ) , "::" , | |
stringify ! ( fieldName ) )); | |
} | |
impl Clone for _PQprintOpt { | |
fn clone(&self) -> Self { *self } | |
} | |
pub type PQprintOpt = _PQprintOpt; | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct _PQconninfoOption { | |
pub keyword: *mut ::std::os::raw::c_char, | |
pub envvar: *mut ::std::os::raw::c_char, | |
pub compiled: *mut ::std::os::raw::c_char, | |
pub val: *mut ::std::os::raw::c_char, | |
pub label: *mut ::std::os::raw::c_char, | |
pub dispchar: *mut ::std::os::raw::c_char, | |
pub dispsize: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout__PQconninfoOption() { | |
assert_eq!(::std::mem::size_of::<_PQconninfoOption>() , 56usize , concat ! | |
( "Size of: " , stringify ! ( _PQconninfoOption ) )); | |
assert_eq! (::std::mem::align_of::<_PQconninfoOption>() , 8usize , concat | |
! ( "Alignment of " , stringify ! ( _PQconninfoOption ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQconninfoOption ) ) . keyword as * | |
const _ as usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQconninfoOption ) , | |
"::" , stringify ! ( keyword ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQconninfoOption ) ) . envvar as * const | |
_ as usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQconninfoOption ) , | |
"::" , stringify ! ( envvar ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQconninfoOption ) ) . compiled as * | |
const _ as usize } , 16usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQconninfoOption ) , | |
"::" , stringify ! ( compiled ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQconninfoOption ) ) . val as * const _ | |
as usize } , 24usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQconninfoOption ) , | |
"::" , stringify ! ( val ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQconninfoOption ) ) . label as * const | |
_ as usize } , 32usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQconninfoOption ) , | |
"::" , stringify ! ( label ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQconninfoOption ) ) . dispchar as * | |
const _ as usize } , 40usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQconninfoOption ) , | |
"::" , stringify ! ( dispchar ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const _PQconninfoOption ) ) . dispsize as * | |
const _ as usize } , 48usize , concat ! ( | |
"Alignment of field: " , stringify ! ( _PQconninfoOption ) , | |
"::" , stringify ! ( dispsize ) )); | |
} | |
impl Clone for _PQconninfoOption { | |
fn clone(&self) -> Self { *self } | |
} | |
pub type PQconninfoOption = _PQconninfoOption; | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct PQArgBlock { | |
pub len: ::std::os::raw::c_int, | |
pub isint: ::std::os::raw::c_int, | |
pub u: PQArgBlock__bindgen_ty_1, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct PQArgBlock__bindgen_ty_1 { | |
pub ptr: __BindgenUnionField<*mut ::std::os::raw::c_int>, | |
pub integer: __BindgenUnionField<::std::os::raw::c_int>, | |
pub bindgen_union_field: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_PQArgBlock__bindgen_ty_1() { | |
assert_eq!(::std::mem::size_of::<PQArgBlock__bindgen_ty_1>() , 8usize , | |
concat ! ( | |
"Size of: " , stringify ! ( PQArgBlock__bindgen_ty_1 ) )); | |
assert_eq! (::std::mem::align_of::<PQArgBlock__bindgen_ty_1>() , 8usize , | |
concat ! ( | |
"Alignment of " , stringify ! ( PQArgBlock__bindgen_ty_1 ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const PQArgBlock__bindgen_ty_1 ) ) . ptr as * | |
const _ as usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( | |
PQArgBlock__bindgen_ty_1 ) , "::" , stringify ! ( ptr ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const PQArgBlock__bindgen_ty_1 ) ) . integer as | |
* const _ as usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( | |
PQArgBlock__bindgen_ty_1 ) , "::" , stringify ! ( integer ) | |
)); | |
} | |
impl Clone for PQArgBlock__bindgen_ty_1 { | |
fn clone(&self) -> Self { *self } | |
} | |
#[test] | |
fn bindgen_test_layout_PQArgBlock() { | |
assert_eq!(::std::mem::size_of::<PQArgBlock>() , 16usize , concat ! ( | |
"Size of: " , stringify ! ( PQArgBlock ) )); | |
assert_eq! (::std::mem::align_of::<PQArgBlock>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( PQArgBlock ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const PQArgBlock ) ) . len as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( PQArgBlock ) , "::" , | |
stringify ! ( len ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const PQArgBlock ) ) . isint as * const _ as | |
usize } , 4usize , concat ! ( | |
"Alignment of field: " , stringify ! ( PQArgBlock ) , "::" , | |
stringify ! ( isint ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const PQArgBlock ) ) . u as * const _ as usize | |
} , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( PQArgBlock ) , "::" , | |
stringify ! ( u ) )); | |
} | |
impl Clone for PQArgBlock { | |
fn clone(&self) -> Self { *self } | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct pgresAttDesc { | |
pub name: *mut ::std::os::raw::c_char, | |
pub tableid: Oid, | |
pub columnid: ::std::os::raw::c_int, | |
pub format: ::std::os::raw::c_int, | |
pub typid: Oid, | |
pub typlen: ::std::os::raw::c_int, | |
pub atttypmod: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_pgresAttDesc() { | |
assert_eq!(::std::mem::size_of::<pgresAttDesc>() , 32usize , concat ! ( | |
"Size of: " , stringify ! ( pgresAttDesc ) )); | |
assert_eq! (::std::mem::align_of::<pgresAttDesc>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( pgresAttDesc ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgresAttDesc ) ) . name as * const _ as | |
usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgresAttDesc ) , "::" , | |
stringify ! ( name ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgresAttDesc ) ) . tableid as * const _ | |
as usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgresAttDesc ) , "::" , | |
stringify ! ( tableid ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgresAttDesc ) ) . columnid as * const _ | |
as usize } , 12usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgresAttDesc ) , "::" , | |
stringify ! ( columnid ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgresAttDesc ) ) . format as * const _ as | |
usize } , 16usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgresAttDesc ) , "::" , | |
stringify ! ( format ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgresAttDesc ) ) . typid as * const _ as | |
usize } , 20usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgresAttDesc ) , "::" , | |
stringify ! ( typid ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgresAttDesc ) ) . typlen as * const _ as | |
usize } , 24usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgresAttDesc ) , "::" , | |
stringify ! ( typlen ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const pgresAttDesc ) ) . atttypmod as * const _ | |
as usize } , 28usize , concat ! ( | |
"Alignment of field: " , stringify ! ( pgresAttDesc ) , "::" , | |
stringify ! ( atttypmod ) )); | |
} | |
impl Clone for pgresAttDesc { | |
fn clone(&self) -> Self { *self } | |
} | |
pub type PGresAttDesc = pgresAttDesc; | |
extern "C" { | |
#[link_name = "_Z14PQconnectStart"] | |
pub fn PQconnectStart(conninfo: *const ::std::os::raw::c_char) | |
-> *mut PGconn; | |
} | |
extern "C" { | |
#[link_name = "_Z20PQconnectStartParams"] | |
pub fn PQconnectStartParams(keywords: | |
*const *const ::std::os::raw::c_char, | |
values: *const *const ::std::os::raw::c_char, | |
expand_dbname: ::std::os::raw::c_int) | |
-> *mut PGconn; | |
} | |
extern "C" { | |
#[link_name = "_Z13PQconnectPoll"] | |
pub fn PQconnectPoll(conn: *mut PGconn) -> PostgresPollingStatusType; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQconnectdb"] | |
pub fn PQconnectdb(conninfo: *const ::std::os::raw::c_char) | |
-> *mut PGconn; | |
} | |
extern "C" { | |
#[link_name = "_Z17PQconnectdbParams"] | |
pub fn PQconnectdbParams(keywords: *const *const ::std::os::raw::c_char, | |
values: *const *const ::std::os::raw::c_char, | |
expand_dbname: ::std::os::raw::c_int) | |
-> *mut PGconn; | |
} | |
extern "C" { | |
#[link_name = "_Z12PQsetdbLogin"] | |
pub fn PQsetdbLogin(pghost: *const ::std::os::raw::c_char, | |
pgport: *const ::std::os::raw::c_char, | |
pgoptions: *const ::std::os::raw::c_char, | |
pgtty: *const ::std::os::raw::c_char, | |
dbName: *const ::std::os::raw::c_char, | |
login: *const ::std::os::raw::c_char, | |
pwd: *const ::std::os::raw::c_char) -> *mut PGconn; | |
} | |
extern "C" { | |
#[link_name = "_Z8PQfinish"] | |
pub fn PQfinish(conn: *mut PGconn); | |
} | |
extern "C" { | |
#[link_name = "_Z14PQconndefaults"] | |
pub fn PQconndefaults() -> *mut PQconninfoOption; | |
} | |
extern "C" { | |
#[link_name = "_Z15PQconninfoParse"] | |
pub fn PQconninfoParse(conninfo: *const ::std::os::raw::c_char, | |
errmsg: *mut *mut ::std::os::raw::c_char) | |
-> *mut PQconninfoOption; | |
} | |
extern "C" { | |
#[link_name = "_Z10PQconninfo"] | |
pub fn PQconninfo(conn: *mut PGconn) -> *mut PQconninfoOption; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQconninfoFree"] | |
pub fn PQconninfoFree(connOptions: *mut PQconninfoOption); | |
} | |
extern "C" { | |
#[link_name = "_Z12PQresetStart"] | |
pub fn PQresetStart(conn: *mut PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQresetPoll"] | |
pub fn PQresetPoll(conn: *mut PGconn) -> PostgresPollingStatusType; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQreset"] | |
pub fn PQreset(conn: *mut PGconn); | |
} | |
extern "C" { | |
#[link_name = "_Z11PQgetCancel"] | |
pub fn PQgetCancel(conn: *mut PGconn) -> *mut PGcancel; | |
} | |
extern "C" { | |
#[link_name = "_Z12PQfreeCancel"] | |
pub fn PQfreeCancel(cancel: *mut PGcancel); | |
} | |
extern "C" { | |
#[link_name = "_Z8PQcancel"] | |
pub fn PQcancel(cancel: *mut PGcancel, | |
errbuf: *mut ::std::os::raw::c_char, | |
errbufsize: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z15PQrequestCancel"] | |
pub fn PQrequestCancel(conn: *mut PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z4PQdb"] | |
pub fn PQdb(conn: *const PGconn) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z6PQuser"] | |
pub fn PQuser(conn: *const PGconn) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z6PQpass"] | |
pub fn PQpass(conn: *const PGconn) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z6PQhost"] | |
pub fn PQhost(conn: *const PGconn) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z6PQport"] | |
pub fn PQport(conn: *const PGconn) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z5PQtty"] | |
pub fn PQtty(conn: *const PGconn) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQoptions"] | |
pub fn PQoptions(conn: *const PGconn) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z8PQstatus"] | |
pub fn PQstatus(conn: *const PGconn) -> ConnStatusType; | |
} | |
extern "C" { | |
#[link_name = "_Z19PQtransactionStatus"] | |
pub fn PQtransactionStatus(conn: *const PGconn) | |
-> PGTransactionStatusType; | |
} | |
extern "C" { | |
#[link_name = "_Z17PQparameterStatus"] | |
pub fn PQparameterStatus(conn: *const PGconn, | |
paramName: *const ::std::os::raw::c_char) | |
-> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z17PQprotocolVersion"] | |
pub fn PQprotocolVersion(conn: *const PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z15PQserverVersion"] | |
pub fn PQserverVersion(conn: *const PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQerrorMessage"] | |
pub fn PQerrorMessage(conn: *const PGconn) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z8PQsocket"] | |
pub fn PQsocket(conn: *const PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z12PQbackendPID"] | |
pub fn PQbackendPID(conn: *const PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z25PQconnectionNeedsPassword"] | |
pub fn PQconnectionNeedsPassword(conn: *const PGconn) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z24PQconnectionUsedPassword"] | |
pub fn PQconnectionUsedPassword(conn: *const PGconn) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z16PQclientEncoding"] | |
pub fn PQclientEncoding(conn: *const PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z19PQsetClientEncoding"] | |
pub fn PQsetClientEncoding(conn: *mut PGconn, | |
encoding: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z10PQsslInUse"] | |
pub fn PQsslInUse(conn: *mut PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQsslStruct"] | |
pub fn PQsslStruct(conn: *mut PGconn, | |
struct_name: *const ::std::os::raw::c_char) | |
-> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQsslAttribute"] | |
pub fn PQsslAttribute(conn: *mut PGconn, | |
attribute_name: *const ::std::os::raw::c_char) | |
-> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z19PQsslAttributeNames"] | |
pub fn PQsslAttributeNames(conn: *mut PGconn) | |
-> *const *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z8PQgetssl"] | |
pub fn PQgetssl(conn: *mut PGconn) -> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQinitSSL"] | |
pub fn PQinitSSL(do_init: ::std::os::raw::c_int); | |
} | |
extern "C" { | |
#[link_name = "_Z13PQinitOpenSSL"] | |
pub fn PQinitOpenSSL(do_ssl: ::std::os::raw::c_int, | |
do_crypto: ::std::os::raw::c_int); | |
} | |
extern "C" { | |
#[link_name = "_Z19PQsetErrorVerbosity"] | |
pub fn PQsetErrorVerbosity(conn: *mut PGconn, verbosity: PGVerbosity) | |
-> PGVerbosity; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQtrace"] | |
pub fn PQtrace(conn: *mut PGconn, debug_port: *mut FILE); | |
} | |
extern "C" { | |
#[link_name = "_Z9PQuntrace"] | |
pub fn PQuntrace(conn: *mut PGconn); | |
} | |
extern "C" { | |
#[link_name = "_Z19PQsetNoticeReceiver"] | |
pub fn PQsetNoticeReceiver(conn: *mut PGconn, proc_: PQnoticeReceiver, | |
arg: *mut ::std::os::raw::c_void) | |
-> PQnoticeReceiver; | |
} | |
extern "C" { | |
#[link_name = "_Z20PQsetNoticeProcessor"] | |
pub fn PQsetNoticeProcessor(conn: *mut PGconn, proc_: PQnoticeProcessor, | |
arg: *mut ::std::os::raw::c_void) | |
-> PQnoticeProcessor; | |
} | |
pub type pgthreadlock_t = | |
::std::option::Option<unsafe extern "C" fn(acquire: | |
::std::os::raw::c_int)>; | |
extern "C" { | |
#[link_name = "_Z20PQregisterThreadLock"] | |
pub fn PQregisterThreadLock(newhandler: pgthreadlock_t) -> pgthreadlock_t; | |
} | |
extern "C" { | |
#[link_name = "_Z6PQexec"] | |
pub fn PQexec(conn: *mut PGconn, query: *const ::std::os::raw::c_char) | |
-> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z12PQexecParams"] | |
pub fn PQexecParams(conn: *mut PGconn, | |
command: *const ::std::os::raw::c_char, | |
nParams: ::std::os::raw::c_int, | |
paramTypes: *const Oid, | |
paramValues: *const *const ::std::os::raw::c_char, | |
paramLengths: *const ::std::os::raw::c_int, | |
paramFormats: *const ::std::os::raw::c_int, | |
resultFormat: ::std::os::raw::c_int) -> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQprepare"] | |
pub fn PQprepare(conn: *mut PGconn, | |
stmtName: *const ::std::os::raw::c_char, | |
query: *const ::std::os::raw::c_char, | |
nParams: ::std::os::raw::c_int, paramTypes: *const Oid) | |
-> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQexecPrepared"] | |
pub fn PQexecPrepared(conn: *mut PGconn, | |
stmtName: *const ::std::os::raw::c_char, | |
nParams: ::std::os::raw::c_int, | |
paramValues: *const *const ::std::os::raw::c_char, | |
paramLengths: *const ::std::os::raw::c_int, | |
paramFormats: *const ::std::os::raw::c_int, | |
resultFormat: ::std::os::raw::c_int) | |
-> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQsendQuery"] | |
pub fn PQsendQuery(conn: *mut PGconn, | |
query: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z17PQsendQueryParams"] | |
pub fn PQsendQueryParams(conn: *mut PGconn, | |
command: *const ::std::os::raw::c_char, | |
nParams: ::std::os::raw::c_int, | |
paramTypes: *const Oid, | |
paramValues: | |
*const *const ::std::os::raw::c_char, | |
paramLengths: *const ::std::os::raw::c_int, | |
paramFormats: *const ::std::os::raw::c_int, | |
resultFormat: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z13PQsendPrepare"] | |
pub fn PQsendPrepare(conn: *mut PGconn, | |
stmtName: *const ::std::os::raw::c_char, | |
query: *const ::std::os::raw::c_char, | |
nParams: ::std::os::raw::c_int, | |
paramTypes: *const Oid) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z19PQsendQueryPrepared"] | |
pub fn PQsendQueryPrepared(conn: *mut PGconn, | |
stmtName: *const ::std::os::raw::c_char, | |
nParams: ::std::os::raw::c_int, | |
paramValues: | |
*const *const ::std::os::raw::c_char, | |
paramLengths: *const ::std::os::raw::c_int, | |
paramFormats: *const ::std::os::raw::c_int, | |
resultFormat: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z18PQsetSingleRowMode"] | |
pub fn PQsetSingleRowMode(conn: *mut PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQgetResult"] | |
pub fn PQgetResult(conn: *mut PGconn) -> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z8PQisBusy"] | |
pub fn PQisBusy(conn: *mut PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQconsumeInput"] | |
pub fn PQconsumeInput(conn: *mut PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z10PQnotifies"] | |
pub fn PQnotifies(conn: *mut PGconn) -> *mut PGnotify; | |
} | |
extern "C" { | |
#[link_name = "_Z13PQputCopyData"] | |
pub fn PQputCopyData(conn: *mut PGconn, | |
buffer: *const ::std::os::raw::c_char, | |
nbytes: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z12PQputCopyEnd"] | |
pub fn PQputCopyEnd(conn: *mut PGconn, | |
errormsg: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z13PQgetCopyData"] | |
pub fn PQgetCopyData(conn: *mut PGconn, | |
buffer: *mut *mut ::std::os::raw::c_char, | |
async: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQgetline"] | |
pub fn PQgetline(conn: *mut PGconn, string: *mut ::std::os::raw::c_char, | |
length: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQputline"] | |
pub fn PQputline(conn: *mut PGconn, string: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQgetlineAsync"] | |
pub fn PQgetlineAsync(conn: *mut PGconn, | |
buffer: *mut ::std::os::raw::c_char, | |
bufsize: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQputnbytes"] | |
pub fn PQputnbytes(conn: *mut PGconn, | |
buffer: *const ::std::os::raw::c_char, | |
nbytes: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQendcopy"] | |
pub fn PQendcopy(conn: *mut PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z16PQsetnonblocking"] | |
pub fn PQsetnonblocking(conn: *mut PGconn, arg: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z15PQisnonblocking"] | |
pub fn PQisnonblocking(conn: *const PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQisthreadsafe"] | |
pub fn PQisthreadsafe() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6PQping"] | |
pub fn PQping(conninfo: *const ::std::os::raw::c_char) -> PGPing; | |
} | |
extern "C" { | |
#[link_name = "_Z12PQpingParams"] | |
pub fn PQpingParams(keywords: *const *const ::std::os::raw::c_char, | |
values: *const *const ::std::os::raw::c_char, | |
expand_dbname: ::std::os::raw::c_int) -> PGPing; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQflush"] | |
pub fn PQflush(conn: *mut PGconn) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z4PQfn"] | |
pub fn PQfn(conn: *mut PGconn, fnid: ::std::os::raw::c_int, | |
result_buf: *mut ::std::os::raw::c_int, | |
result_len: *mut ::std::os::raw::c_int, | |
result_is_int: ::std::os::raw::c_int, args: *const PQArgBlock, | |
nargs: ::std::os::raw::c_int) -> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQresultStatus"] | |
pub fn PQresultStatus(res: *const PGresult) -> ExecStatusType; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQresStatus"] | |
pub fn PQresStatus(status: ExecStatusType) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z20PQresultErrorMessage"] | |
pub fn PQresultErrorMessage(res: *const PGresult) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z18PQresultErrorField"] | |
pub fn PQresultErrorField(res: *const PGresult, | |
fieldcode: ::std::os::raw::c_int) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQntuples"] | |
pub fn PQntuples(res: *const PGresult) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQnfields"] | |
pub fn PQnfields(res: *const PGresult) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQbinaryTuples"] | |
pub fn PQbinaryTuples(res: *const PGresult) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQfname"] | |
pub fn PQfname(res: *const PGresult, field_num: ::std::os::raw::c_int) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQfnumber"] | |
pub fn PQfnumber(res: *const PGresult, | |
field_name: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8PQftable"] | |
pub fn PQftable(res: *const PGresult, field_num: ::std::os::raw::c_int) | |
-> Oid; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQftablecol"] | |
pub fn PQftablecol(res: *const PGresult, field_num: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQfformat"] | |
pub fn PQfformat(res: *const PGresult, field_num: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQftype"] | |
pub fn PQftype(res: *const PGresult, field_num: ::std::os::raw::c_int) | |
-> Oid; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQfsize"] | |
pub fn PQfsize(res: *const PGresult, field_num: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z6PQfmod"] | |
pub fn PQfmod(res: *const PGresult, field_num: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQcmdStatus"] | |
pub fn PQcmdStatus(res: *mut PGresult) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQoidStatus"] | |
pub fn PQoidStatus(res: *const PGresult) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z10PQoidValue"] | |
pub fn PQoidValue(res: *const PGresult) -> Oid; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQcmdTuples"] | |
pub fn PQcmdTuples(res: *mut PGresult) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z10PQgetvalue"] | |
pub fn PQgetvalue(res: *const PGresult, tup_num: ::std::os::raw::c_int, | |
field_num: ::std::os::raw::c_int) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQgetlength"] | |
pub fn PQgetlength(res: *const PGresult, tup_num: ::std::os::raw::c_int, | |
field_num: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQgetisnull"] | |
pub fn PQgetisnull(res: *const PGresult, tup_num: ::std::os::raw::c_int, | |
field_num: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9PQnparams"] | |
pub fn PQnparams(res: *const PGresult) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z11PQparamtype"] | |
pub fn PQparamtype(res: *const PGresult, param_num: ::std::os::raw::c_int) | |
-> Oid; | |
} | |
extern "C" { | |
#[link_name = "_Z18PQdescribePrepared"] | |
pub fn PQdescribePrepared(conn: *mut PGconn, | |
stmt: *const ::std::os::raw::c_char) | |
-> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z16PQdescribePortal"] | |
pub fn PQdescribePortal(conn: *mut PGconn, | |
portal: *const ::std::os::raw::c_char) | |
-> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z22PQsendDescribePrepared"] | |
pub fn PQsendDescribePrepared(conn: *mut PGconn, | |
stmt: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z20PQsendDescribePortal"] | |
pub fn PQsendDescribePortal(conn: *mut PGconn, | |
portal: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQclear"] | |
pub fn PQclear(res: *mut PGresult); | |
} | |
extern "C" { | |
#[link_name = "_Z9PQfreemem"] | |
pub fn PQfreemem(ptr: *mut ::std::os::raw::c_void); | |
} | |
extern "C" { | |
#[link_name = "_Z19PQmakeEmptyPGresult"] | |
pub fn PQmakeEmptyPGresult(conn: *mut PGconn, status: ExecStatusType) | |
-> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z12PQcopyResult"] | |
pub fn PQcopyResult(src: *const PGresult, flags: ::std::os::raw::c_int) | |
-> *mut PGresult; | |
} | |
extern "C" { | |
#[link_name = "_Z16PQsetResultAttrs"] | |
pub fn PQsetResultAttrs(res: *mut PGresult, | |
numAttributes: ::std::os::raw::c_int, | |
attDescs: *mut PGresAttDesc) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z13PQresultAlloc"] | |
pub fn PQresultAlloc(res: *mut PGresult, nBytes: usize) | |
-> *mut ::std::os::raw::c_void; | |
} | |
extern "C" { | |
#[link_name = "_Z10PQsetvalue"] | |
pub fn PQsetvalue(res: *mut PGresult, tup_num: ::std::os::raw::c_int, | |
field_num: ::std::os::raw::c_int, | |
value: *mut ::std::os::raw::c_char, | |
len: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z18PQescapeStringConn"] | |
pub fn PQescapeStringConn(conn: *mut PGconn, | |
to: *mut ::std::os::raw::c_char, | |
from: *const ::std::os::raw::c_char, | |
length: usize, | |
error: *mut ::std::os::raw::c_int) -> usize; | |
} | |
extern "C" { | |
#[link_name = "_Z15PQescapeLiteral"] | |
pub fn PQescapeLiteral(conn: *mut PGconn, | |
str: *const ::std::os::raw::c_char, len: usize) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z18PQescapeIdentifier"] | |
pub fn PQescapeIdentifier(conn: *mut PGconn, | |
str: *const ::std::os::raw::c_char, len: usize) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z17PQescapeByteaConn"] | |
pub fn PQescapeByteaConn(conn: *mut PGconn, | |
from: *const ::std::os::raw::c_uchar, | |
from_length: usize, to_length: *mut usize) | |
-> *mut ::std::os::raw::c_uchar; | |
} | |
extern "C" { | |
#[link_name = "_Z15PQunescapeBytea"] | |
pub fn PQunescapeBytea(strtext: *const ::std::os::raw::c_uchar, | |
retbuflen: *mut usize) | |
-> *mut ::std::os::raw::c_uchar; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQescapeString"] | |
pub fn PQescapeString(to: *mut ::std::os::raw::c_char, | |
from: *const ::std::os::raw::c_char, length: usize) | |
-> usize; | |
} | |
extern "C" { | |
#[link_name = "_Z13PQescapeBytea"] | |
pub fn PQescapeBytea(from: *const ::std::os::raw::c_uchar, | |
from_length: usize, to_length: *mut usize) | |
-> *mut ::std::os::raw::c_uchar; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQprint"] | |
pub fn PQprint(fout: *mut FILE, res: *const PGresult, | |
ps: *const PQprintOpt); | |
} | |
extern "C" { | |
#[link_name = "_Z15PQdisplayTuples"] | |
pub fn PQdisplayTuples(res: *const PGresult, fp: *mut FILE, | |
fillAlign: ::std::os::raw::c_int, | |
fieldSep: *const ::std::os::raw::c_char, | |
printHeader: ::std::os::raw::c_int, | |
quiet: ::std::os::raw::c_int); | |
} | |
extern "C" { | |
#[link_name = "_Z13PQprintTuples"] | |
pub fn PQprintTuples(res: *const PGresult, fout: *mut FILE, | |
printAttName: ::std::os::raw::c_int, | |
terseOutput: ::std::os::raw::c_int, | |
width: ::std::os::raw::c_int); | |
} | |
extern "C" { | |
#[link_name = "_Z7lo_open"] | |
pub fn lo_open(conn: *mut PGconn, lobjId: Oid, | |
mode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8lo_close"] | |
pub fn lo_close(conn: *mut PGconn, fd: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7lo_read"] | |
pub fn lo_read(conn: *mut PGconn, fd: ::std::os::raw::c_int, | |
buf: *mut ::std::os::raw::c_char, len: usize) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8lo_write"] | |
pub fn lo_write(conn: *mut PGconn, fd: ::std::os::raw::c_int, | |
buf: *const ::std::os::raw::c_char, len: usize) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8lo_lseek"] | |
pub fn lo_lseek(conn: *mut PGconn, fd: ::std::os::raw::c_int, | |
offset: ::std::os::raw::c_int, | |
whence: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z10lo_lseek64"] | |
pub fn lo_lseek64(conn: *mut PGconn, fd: ::std::os::raw::c_int, | |
offset: pg_int64, whence: ::std::os::raw::c_int) | |
-> pg_int64; | |
} | |
extern "C" { | |
#[link_name = "_Z8lo_creat"] | |
pub fn lo_creat(conn: *mut PGconn, mode: ::std::os::raw::c_int) -> Oid; | |
} | |
extern "C" { | |
#[link_name = "_Z9lo_create"] | |
pub fn lo_create(conn: *mut PGconn, lobjId: Oid) -> Oid; | |
} | |
extern "C" { | |
#[link_name = "_Z7lo_tell"] | |
pub fn lo_tell(conn: *mut PGconn, fd: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9lo_tell64"] | |
pub fn lo_tell64(conn: *mut PGconn, fd: ::std::os::raw::c_int) | |
-> pg_int64; | |
} | |
extern "C" { | |
#[link_name = "_Z11lo_truncate"] | |
pub fn lo_truncate(conn: *mut PGconn, fd: ::std::os::raw::c_int, | |
len: usize) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z13lo_truncate64"] | |
pub fn lo_truncate64(conn: *mut PGconn, fd: ::std::os::raw::c_int, | |
len: pg_int64) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9lo_unlink"] | |
pub fn lo_unlink(conn: *mut PGconn, lobjId: Oid) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z9lo_import"] | |
pub fn lo_import(conn: *mut PGconn, | |
filename: *const ::std::os::raw::c_char) -> Oid; | |
} | |
extern "C" { | |
#[link_name = "_Z18lo_import_with_oid"] | |
pub fn lo_import_with_oid(conn: *mut PGconn, | |
filename: *const ::std::os::raw::c_char, | |
lobjId: Oid) -> Oid; | |
} | |
extern "C" { | |
#[link_name = "_Z9lo_export"] | |
pub fn lo_export(conn: *mut PGconn, lobjId: Oid, | |
filename: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z12PQlibVersion"] | |
pub fn PQlibVersion() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z7PQmblen"] | |
pub fn PQmblen(s: *const ::std::os::raw::c_char, | |
encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z8PQdsplen"] | |
pub fn PQdsplen(s: *const ::std::os::raw::c_char, | |
encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z14PQenv2encoding"] | |
pub fn PQenv2encoding() -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z17PQencryptPassword"] | |
pub fn PQencryptPassword(passwd: *const ::std::os::raw::c_char, | |
user: *const ::std::os::raw::c_char) | |
-> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z19pg_char_to_encoding"] | |
pub fn pg_char_to_encoding(name: *const ::std::os::raw::c_char) | |
-> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "_Z19pg_encoding_to_char"] | |
pub fn pg_encoding_to_char(encoding: ::std::os::raw::c_int) | |
-> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "_Z27pg_valid_server_encoding_id"] | |
pub fn pg_valid_server_encoding_id(encoding: ::std::os::raw::c_int) | |
-> ::std::os::raw::c_int; | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy)] | |
pub struct __va_list_tag { | |
pub gp_offset: ::std::os::raw::c_uint, | |
pub fp_offset: ::std::os::raw::c_uint, | |
pub overflow_arg_area: *mut ::std::os::raw::c_void, | |
pub reg_save_area: *mut ::std::os::raw::c_void, | |
} | |
#[test] | |
fn bindgen_test_layout___va_list_tag() { | |
assert_eq!(::std::mem::size_of::<__va_list_tag>() , 24usize , concat ! ( | |
"Size of: " , stringify ! ( __va_list_tag ) )); | |
assert_eq! (::std::mem::align_of::<__va_list_tag>() , 8usize , concat ! ( | |
"Alignment of " , stringify ! ( __va_list_tag ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __va_list_tag ) ) . gp_offset as * const | |
_ as usize } , 0usize , concat ! ( | |
"Alignment of field: " , stringify ! ( __va_list_tag ) , "::" | |
, stringify ! ( gp_offset ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __va_list_tag ) ) . fp_offset as * const | |
_ as usize } , 4usize , concat ! ( | |
"Alignment of field: " , stringify ! ( __va_list_tag ) , "::" | |
, stringify ! ( fp_offset ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __va_list_tag ) ) . overflow_arg_area as | |
* const _ as usize } , 8usize , concat ! ( | |
"Alignment of field: " , stringify ! ( __va_list_tag ) , "::" | |
, stringify ! ( overflow_arg_area ) )); | |
assert_eq! (unsafe { | |
& ( * ( 0 as * const __va_list_tag ) ) . reg_save_area as * | |
const _ as usize } , 16usize , concat ! ( | |
"Alignment of field: " , stringify ! ( __va_list_tag ) , "::" | |
, stringify ! ( reg_save_area ) )); | |
} | |
impl Clone for __va_list_tag { | |
fn clone(&self) -> Self { *self } | |
} | |
pub type __builtin_va_list = [__va_list_tag; 1usize]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment