pub const PED_DEFAULT_ALIGNMENT: u32 = 1048576;
pub const _TIME_H: u32 = 1;
pub const _FEATURES_H: 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 = 32;
pub const __WORDSIZE32_SIZE_ULONG: u32 = 0;
pub const __WORDSIZE32_PTRDIFF_LONG: u32 = 0;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 0;
pub const __TIMESIZE: u32 = 32;
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_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_60559_BFP__: u32 = 201404;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 35;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const _BITS_TIME_H: u32 = 1;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 0;
pub const __STATFS_MATCHES_STATFS64: u32 = 0;
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 0;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const CLOCK_REALTIME: u32 = 0;
pub const CLOCK_MONOTONIC: u32 = 1;
pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2;
pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3;
pub const CLOCK_MONOTONIC_RAW: u32 = 4;
pub const CLOCK_REALTIME_COARSE: u32 = 5;
pub const CLOCK_MONOTONIC_COARSE: u32 = 6;
pub const CLOCK_BOOTTIME: u32 = 7;
pub const CLOCK_REALTIME_ALARM: u32 = 8;
pub const CLOCK_BOOTTIME_ALARM: u32 = 9;
pub const CLOCK_TAI: u32 = 11;
pub const TIMER_ABSTIME: u32 = 1;
pub const __clock_t_defined: u32 = 1;
pub const __time_t_defined: u32 = 1;
pub const __struct_tm_defined: u32 = 1;
pub const _STRUCT_TIMESPEC: u32 = 1;
pub const _BITS_ENDIAN_H: u32 = 1;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __PDP_ENDIAN: u32 = 3412;
pub const _BITS_ENDIANNESS_H: u32 = 1;
pub const __BYTE_ORDER: u32 = 1234;
pub const __FLOAT_WORD_ORDER: u32 = 1234;
pub const __clockid_t_defined: u32 = 1;
pub const __timer_t_defined: u32 = 1;
pub const __itimerspec_defined: u32 = 1;
pub const _BITS_TYPES_LOCALE_T_H: u32 = 1;
pub const _BITS_TYPES___LOCALE_T_H: u32 = 1;
pub const TIME_UTC: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const __GNUC_VA_LIST: u32 = 1;
pub const _STDIO_H: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT_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 _____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;
pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0";
pub const _BITS_STDIO_LIM_H: u32 = 1;
pub const L_tmpnam: u32 = 20;
pub const TMP_MAX: u32 = 238328;
pub const FILENAME_MAX: u32 = 4096;
pub const L_ctermid: u32 = 9;
pub const FOPEN_MAX: u32 = 16;
pub const __HAVE_FLOAT128: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT128: u32 = 0;
pub const __HAVE_FLOAT64X: u32 = 1;
pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1;
pub const __HAVE_FLOAT16: u32 = 0;
pub const __HAVE_FLOAT32: u32 = 1;
pub const __HAVE_FLOAT64: u32 = 1;
pub const __HAVE_FLOAT32X: u32 = 1;
pub const __HAVE_FLOAT128X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT16: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT32: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT64: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0;
pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0;
pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0;
pub const PED_SECTOR_SIZE_DEFAULT: u32 = 512;
pub const PED_KILOBYTE_SIZE: u32 = 1000;
pub const PED_MEGABYTE_SIZE: u32 = 1000000;
pub const PED_GIGABYTE_SIZE: u32 = 1000000000;
pub const PED_TERABYTE_SIZE: u64 = 1000000000000;
pub const PED_KIBIBYTE_SIZE: u32 = 1024;
pub const PED_MEBIBYTE_SIZE: u32 = 1048576;
pub const PED_GIBIBYTE_SIZE: u32 = 1073741824;
pub const PED_TEBIBYTE_SIZE: u64 = 1099511627776;
pub const _STDINT_H: u32 = 1;
pub const _BITS_WCHAR_H: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const _BITS_STDINT_UINTN_H: u32 = 1;
pub const 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: i32 = -2147483648;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 2147483647;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 4294967295;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const INTPTR_MIN: i32 = -2147483648;
pub const INTPTR_MAX: u32 = 2147483647;
pub const UINTPTR_MAX: u32 = 4294967295;
pub const PTRDIFF_MIN: i32 = -2147483648;
pub const PTRDIFF_MAX: u32 = 2147483647;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: u32 = 4294967295;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const _STDLIB_H: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WSTOPPED: u32 = 2;
pub const WEXITED: u32 = 4;
pub const WCONTINUED: u32 = 8;
pub const WNOWAIT: u32 = 16777216;
pub const __WNOTHREAD: u32 = 536870912;
pub const __WALL: u32 = 1073741824;
pub const __WCLONE: u32 = 2147483648;
pub const __W_CONTINUED: u32 = 65535;
pub const __WCOREFLAG: u32 = 128;
pub const __ldiv_t_defined: u32 = 1;
pub const __lldiv_t_defined: u32 = 1;
pub const RAND_MAX: u32 = 2147483647;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const _SYS_TYPES_H: u32 = 1;
pub const __BIT_TYPES_DEFINED__: u32 = 1;
pub const _ENDIAN_H: 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 _BITS_BYTESWAP_H: u32 = 1;
pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
pub const _SYS_SELECT_H: u32 = 1;
pub const __sigset_t_defined: u32 = 1;
pub const __timeval_defined: u32 = 1;
pub const FD_SETSIZE: u32 = 1024;
pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
pub const _THREAD_SHARED_TYPES_H: u32 = 1;
pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 24;
pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 36;
pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 32;
pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 20;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 0;
pub const __have_pthread_attr_t: u32 = 1;
pub const _ALLOCA_H: u32 = 1;
pub const _STRING_H: u32 = 1;
pub const _STRINGS_H: u32 = 1;
pub type PedConstraint = _PedConstraint;
pub type PedSector = ::std::os::raw::c_longlong;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum PedDeviceType {
PED_DEVICE_UNKNOWN = 0,
PED_DEVICE_SCSI = 1,
PED_DEVICE_IDE = 2,
PED_DEVICE_DAC960 = 3,
PED_DEVICE_CPQARRAY = 4,
PED_DEVICE_FILE = 5,
PED_DEVICE_ATARAID = 6,
PED_DEVICE_I2O = 7,
PED_DEVICE_UBD = 8,
PED_DEVICE_DASD = 9,
PED_DEVICE_VIODASD = 10,
PED_DEVICE_SX8 = 11,
PED_DEVICE_DM = 12,
PED_DEVICE_XVD = 13,
PED_DEVICE_SDMMC = 14,
PED_DEVICE_VIRTBLK = 15,
PED_DEVICE_AOE = 16,
PED_DEVICE_MD = 17,
PED_DEVICE_LOOP = 18,
PED_DEVICE_NVME = 19,
PED_DEVICE_RAM = 20,
PED_DEVICE_PMEM = 21,
}
pub type PedDevice = _PedDevice;
pub type PedDeviceArchOps = _PedDeviceArchOps;
pub type PedCHSGeometry = _PedCHSGeometry;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedCHSGeometry {
pub cylinders: ::std::os::raw::c_int,
pub heads: ::std::os::raw::c_int,
pub sectors: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__PedCHSGeometry() {
const UNINIT: ::std::mem::MaybeUninit<_PedCHSGeometry> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedCHSGeometry>(),
12usize,
concat!("Size of: ", stringify!(_PedCHSGeometry))
);
assert_eq!(
::std::mem::align_of::<_PedCHSGeometry>(),
4usize,
concat!("Alignment of ", stringify!(_PedCHSGeometry))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cylinders) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedCHSGeometry),
"::",
stringify!(cylinders)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).heads) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedCHSGeometry),
"::",
stringify!(heads)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sectors) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedCHSGeometry),
"::",
stringify!(sectors)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedDevice {
pub next: *mut PedDevice,
pub model: *mut ::std::os::raw::c_char,
pub path: *mut ::std::os::raw::c_char,
pub type_: PedDeviceType,
pub sector_size: ::std::os::raw::c_longlong,
pub phys_sector_size: ::std::os::raw::c_longlong,
pub length: PedSector,
pub open_count: ::std::os::raw::c_int,
pub read_only: ::std::os::raw::c_int,
pub external_mode: ::std::os::raw::c_int,
pub dirty: ::std::os::raw::c_int,
pub boot_dirty: ::std::os::raw::c_int,
pub hw_geom: PedCHSGeometry,
pub bios_geom: PedCHSGeometry,
pub host: ::std::os::raw::c_short,
pub did: ::std::os::raw::c_short,
pub arch_specific: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__PedDevice() {
const UNINIT: ::std::mem::MaybeUninit<_PedDevice> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedDevice>(),
92usize,
concat!("Size of: ", stringify!(_PedDevice))
);
assert_eq!(
::std::mem::align_of::<_PedDevice>(),
4usize,
concat!("Alignment of ", stringify!(_PedDevice))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).model) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(model)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).path) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(path)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sector_size) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(sector_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).phys_sector_size) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(phys_sector_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(length)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).open_count) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(open_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_only) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(read_only)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).external_mode) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(external_mode)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dirty) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(dirty)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).boot_dirty) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(boot_dirty)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hw_geom) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(hw_geom)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).bios_geom) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(bios_geom)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).host) as usize - ptr as usize },
84usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(host)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).did) as usize - ptr as usize },
86usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(did)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).arch_specific) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(_PedDevice),
"::",
stringify!(arch_specific)
)
);
}
pub type PedAlignment = _PedAlignment;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _PedDiskFlag {
PED_DISK_CYLINDER_ALIGNMENT = 1,
PED_DISK_GPT_PMBR_BOOT = 2,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _PedPartitionType {
PED_PARTITION_NORMAL = 0,
PED_PARTITION_LOGICAL = 1,
PED_PARTITION_EXTENDED = 2,
PED_PARTITION_FREESPACE = 4,
PED_PARTITION_METADATA = 8,
PED_PARTITION_PROTECTED = 16,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _PedPartitionFlag {
PED_PARTITION_BOOT = 1,
PED_PARTITION_ROOT = 2,
PED_PARTITION_SWAP = 3,
PED_PARTITION_HIDDEN = 4,
PED_PARTITION_RAID = 5,
PED_PARTITION_LVM = 6,
PED_PARTITION_LBA = 7,
PED_PARTITION_HPSERVICE = 8,
PED_PARTITION_PALO = 9,
PED_PARTITION_PREP = 10,
PED_PARTITION_MSFT_RESERVED = 11,
PED_PARTITION_BIOS_GRUB = 12,
PED_PARTITION_APPLE_TV_RECOVERY = 13,
PED_PARTITION_DIAG = 14,
PED_PARTITION_LEGACY_BOOT = 15,
PED_PARTITION_MSFT_DATA = 16,
PED_PARTITION_IRST = 17,
PED_PARTITION_ESP = 18,
PED_PARTITION_CHROMEOS_KERNEL = 19,
PED_PARTITION_BLS_BOOT = 20,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _PedDiskTypeFeature {
PED_DISK_TYPE_EXTENDED = 1,
PED_DISK_TYPE_PARTITION_NAME = 2,
}
pub use self::_PedDiskFlag as PedDiskFlag;
pub use self::_PedDiskTypeFeature as PedDiskTypeFeature;
pub use self::_PedPartitionFlag as PedPartitionFlag;
pub use self::_PedPartitionType as PedPartitionType;
pub type PedDisk = _PedDisk;
pub type PedPartition = _PedPartition;
pub type PedDiskOps = _PedDiskOps;
pub type PedDiskType = _PedDiskType;
pub type PedDiskArchOps = _PedDiskArchOps;
pub type PedFileSystem = _PedFileSystem;
pub type PedFileSystemType = _PedFileSystemType;
pub type PedFileSystemAlias = _PedFileSystemAlias;
pub type PedFileSystemOps = _PedFileSystemOps;
pub type PedGeometry = _PedGeometry;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedGeometry {
pub dev: *mut PedDevice,
pub start: PedSector,
pub length: PedSector,
pub end: PedSector,
}
#[test]
fn bindgen_test_layout__PedGeometry() {
const UNINIT: ::std::mem::MaybeUninit<_PedGeometry> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedGeometry>(),
28usize,
concat!("Size of: ", stringify!(_PedGeometry))
);
assert_eq!(
::std::mem::align_of::<_PedGeometry>(),
4usize,
concat!("Alignment of ", stringify!(_PedGeometry))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dev) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedGeometry),
"::",
stringify!(dev)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedGeometry),
"::",
stringify!(start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedGeometry),
"::",
stringify!(length)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(_PedGeometry),
"::",
stringify!(end)
)
);
}
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_longlong;
pub type __uint64_t = ::std::os::raw::c_ulonglong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = ::std::os::raw::c_longlong;
pub type __u_quad_t = ::std::os::raw::c_ulonglong;
pub type __intmax_t = ::std::os::raw::c_longlong;
pub type __uintmax_t = ::std::os::raw::c_ulonglong;
pub type __dev_t = __uint64_t;
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 = __uint64_t;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_uint;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = __int64_t;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
pub __val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__fsid_t>(),
8usize,
concat!("Size of: ", stringify!(__fsid_t))
);
assert_eq!(
::std::mem::align_of::<__fsid_t>(),
4usize,
concat!("Alignment of ", stringify!(__fsid_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__fsid_t),
"::",
stringify!(__val)
)
);
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = __uint64_t;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __suseconds64_t = __int64_t;
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 = __int64_t;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = __uint64_t;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = __uint64_t;
pub type __fsword_t = ::std::os::raw::c_int;
pub type __ssize_t = ::std::os::raw::c_int;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_int;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
pub type __time64_t = __int64_t;
pub type clock_t = __clock_t;
pub type time_t = __time_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tm {
pub tm_sec: ::std::os::raw::c_int,
pub tm_min: ::std::os::raw::c_int,
pub tm_hour: ::std::os::raw::c_int,
pub tm_mday: ::std::os::raw::c_int,
pub tm_mon: ::std::os::raw::c_int,
pub tm_year: ::std::os::raw::c_int,
pub tm_wday: ::std::os::raw::c_int,
pub tm_yday: ::std::os::raw::c_int,
pub tm_isdst: ::std::os::raw::c_int,
pub tm_gmtoff: ::std::os::raw::c_long,
pub tm_zone: *const ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_tm() {
const UNINIT: ::std::mem::MaybeUninit<tm> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<tm>(),
44usize,
concat!("Size of: ", stringify!(tm))
);
assert_eq!(
::std::mem::align_of::<tm>(),
4usize,
concat!("Alignment of ", stringify!(tm))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_sec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_min)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_hour)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_mday)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_mon)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_year)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_wday)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_yday)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_isdst)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_gmtoff) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_gmtoff)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tm_zone) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(tm),
"::",
stringify!(tm_zone)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
pub tv_sec: __time_t,
pub tv_nsec: __syscall_slong_t,
}
#[test]
fn bindgen_test_layout_timespec() {
const UNINIT: ::std::mem::MaybeUninit<timespec> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<timespec>(),
8usize,
concat!("Size of: ", stringify!(timespec))
);
assert_eq!(
::std::mem::align_of::<timespec>(),
4usize,
concat!("Alignment of ", stringify!(timespec))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(timespec),
"::",
stringify!(tv_sec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(timespec),
"::",
stringify!(tv_nsec)
)
);
}
pub type clockid_t = __clockid_t;
pub type timer_t = __timer_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct itimerspec {
pub it_interval: timespec,
pub it_value: timespec,
}
#[test]
fn bindgen_test_layout_itimerspec() {
const UNINIT: ::std::mem::MaybeUninit<itimerspec> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<itimerspec>(),
16usize,
concat!("Size of: ", stringify!(itimerspec))
);
assert_eq!(
::std::mem::align_of::<itimerspec>(),
4usize,
concat!("Alignment of ", stringify!(itimerspec))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).it_interval) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(itimerspec),
"::",
stringify!(it_interval)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).it_value) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(itimerspec),
"::",
stringify!(it_value)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigevent {
_unused: [u8; 0],
}
pub type pid_t = __pid_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_struct {
pub __locales: [*mut __locale_data; 13usize],
pub __ctype_b: *const ::std::os::raw::c_ushort,
pub __ctype_tolower: *const ::std::os::raw::c_int,
pub __ctype_toupper: *const ::std::os::raw::c_int,
pub __names: [*const ::std::os::raw::c_char; 13usize],
}
#[test]
fn bindgen_test_layout___locale_struct() {
const UNINIT: ::std::mem::MaybeUninit<__locale_struct> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__locale_struct>(),
116usize,
concat!("Size of: ", stringify!(__locale_struct))
);
assert_eq!(
::std::mem::align_of::<__locale_struct>(),
4usize,
concat!("Alignment of ", stringify!(__locale_struct))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__locales) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__locales)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ctype_b) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_b)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ctype_tolower) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_tolower)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__ctype_toupper) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__ctype_toupper)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__names) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(__locale_struct),
"::",
stringify!(__names)
)
);
}
pub type __locale_t = *mut __locale_struct;
pub type locale_t = __locale_t;
extern "C" {
pub fn clock() -> clock_t;
}
extern "C" {
pub fn time(__timer: *mut time_t) -> time_t;
}
extern "C" {
pub fn difftime(__time1: time_t, __time0: time_t) -> f64;
}
extern "C" {
pub fn mktime(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn strftime(
__s: *mut ::std::os::raw::c_char,
__maxsize: usize,
__format: *const ::std::os::raw::c_char,
__tp: *const tm,
) -> usize;
}
extern "C" {
pub fn strftime_l(
__s: *mut ::std::os::raw::c_char,
__maxsize: usize,
__format: *const ::std::os::raw::c_char,
__tp: *const tm,
__loc: locale_t,
) -> usize;
}
extern "C" {
pub fn gmtime(__timer: *const time_t) -> *mut tm;
}
extern "C" {
pub fn localtime(__timer: *const time_t) -> *mut tm;
}
extern "C" {
pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
}
extern "C" {
pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm;
}
extern "C" {
pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn asctime_r(
__tp: *const tm,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ctime_r(
__timer: *const time_t,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize];
}
extern "C" {
pub static mut __daylight: ::std::os::raw::c_int;
}
extern "C" {
pub static mut __timezone: ::std::os::raw::c_long;
}
extern "C" {
pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize];
}
extern "C" {
pub fn tzset();
}
extern "C" {
pub static mut daylight: ::std::os::raw::c_int;
}
extern "C" {
pub static mut timezone: ::std::os::raw::c_long;
}
extern "C" {
pub fn timegm(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn timelocal(__tp: *mut tm) -> time_t;
}
extern "C" {
pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nanosleep(
__requested_time: *const timespec,
__remaining: *mut timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_nanosleep(
__clock_id: clockid_t,
__flags: ::std::os::raw::c_int,
__req: *const timespec,
__rem: *mut timespec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_create(
__clock_id: clockid_t,
__evp: *mut sigevent,
__timerid: *mut timer_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_settime(
__timerid: timer_t,
__flags: ::std::os::raw::c_int,
__value: *const itimerspec,
__ovalue: *mut itimerspec,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn timespec_get(
__ts: *mut timespec,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
pub type PedTimer = _PedTimer;
pub type PedTimerHandler = ::std::option::Option<
unsafe extern "C" fn(timer: *mut PedTimer, context: *mut ::std::os::raw::c_void),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedTimer {
pub frac: f32,
pub start: time_t,
pub now: time_t,
pub predicted_end: time_t,
pub state_name: *const ::std::os::raw::c_char,
pub handler: PedTimerHandler,
pub context: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__PedTimer() {
const UNINIT: ::std::mem::MaybeUninit<_PedTimer> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedTimer>(),
28usize,
concat!("Size of: ", stringify!(_PedTimer))
);
assert_eq!(
::std::mem::align_of::<_PedTimer>(),
4usize,
concat!("Alignment of ", stringify!(_PedTimer))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).frac) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedTimer),
"::",
stringify!(frac)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedTimer),
"::",
stringify!(start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).now) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedTimer),
"::",
stringify!(now)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).predicted_end) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedTimer),
"::",
stringify!(predicted_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).state_name) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_PedTimer),
"::",
stringify!(state_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).handler) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(_PedTimer),
"::",
stringify!(handler)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).context) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_PedTimer),
"::",
stringify!(context)
)
);
}
extern "C" {
pub fn ped_timer_new(
handler: PedTimerHandler,
context: *mut ::std::os::raw::c_void,
) -> *mut PedTimer;
}
extern "C" {
pub fn ped_timer_destroy(timer: *mut PedTimer);
}
extern "C" {
pub fn ped_timer_new_nested(parent: *mut PedTimer, nest_frac: f32) -> *mut PedTimer;
}
extern "C" {
pub fn ped_timer_destroy_nested(timer: *mut PedTimer);
}
extern "C" {
pub fn ped_timer_touch(timer: *mut PedTimer);
}
extern "C" {
pub fn ped_timer_reset(timer: *mut PedTimer);
}
extern "C" {
pub fn ped_timer_update(timer: *mut PedTimer, new_frac: f32);
}
extern "C" {
pub fn ped_timer_set_state_name(
timer: *mut PedTimer,
state_name: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn ped_geometry_init(
geom: *mut PedGeometry,
dev: *const PedDevice,
start: PedSector,
length: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_new(
dev: *const PedDevice,
start: PedSector,
length: PedSector,
) -> *mut PedGeometry;
}
extern "C" {
pub fn ped_geometry_duplicate(geom: *const PedGeometry) -> *mut PedGeometry;
}
extern "C" {
pub fn ped_geometry_intersect(a: *const PedGeometry, b: *const PedGeometry)
-> *mut PedGeometry;
}
extern "C" {
pub fn ped_geometry_destroy(geom: *mut PedGeometry);
}
extern "C" {
pub fn ped_geometry_set(
geom: *mut PedGeometry,
start: PedSector,
length: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_set_start(
geom: *mut PedGeometry,
start: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_set_end(geom: *mut PedGeometry, end: PedSector) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_test_overlap(
a: *const PedGeometry,
b: *const PedGeometry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_test_inside(
a: *const PedGeometry,
b: *const PedGeometry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_test_equal(
a: *const PedGeometry,
b: *const PedGeometry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_test_sector_inside(
geom: *const PedGeometry,
sect: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_read(
geom: *const PedGeometry,
buffer: *mut ::std::os::raw::c_void,
offset: PedSector,
count: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_read_alloc(
geom: *const PedGeometry,
buffer: *mut *mut ::std::os::raw::c_void,
offset: PedSector,
count: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_write(
geom: *mut PedGeometry,
buffer: *const ::std::os::raw::c_void,
offset: PedSector,
count: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_check(
geom: *mut PedGeometry,
buffer: *mut ::std::os::raw::c_void,
buffer_size: PedSector,
offset: PedSector,
granularity: PedSector,
count: PedSector,
timer: *mut PedTimer,
) -> PedSector;
}
extern "C" {
pub fn ped_geometry_sync(geom: *mut PedGeometry) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_sync_fast(geom: *mut PedGeometry) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_geometry_map(
dst: *const PedGeometry,
src: *const PedGeometry,
sector: PedSector,
) -> PedSector;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedFileSystemOps {
pub probe:
::std::option::Option<unsafe extern "C" fn(geom: *mut PedGeometry) -> *mut PedGeometry>,
}
#[test]
fn bindgen_test_layout__PedFileSystemOps() {
const UNINIT: ::std::mem::MaybeUninit<_PedFileSystemOps> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedFileSystemOps>(),
4usize,
concat!("Size of: ", stringify!(_PedFileSystemOps))
);
assert_eq!(
::std::mem::align_of::<_PedFileSystemOps>(),
4usize,
concat!("Alignment of ", stringify!(_PedFileSystemOps))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).probe) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystemOps),
"::",
stringify!(probe)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedFileSystemType {
pub next: *mut PedFileSystemType,
pub name: *const ::std::os::raw::c_char,
pub ops: *const _PedFileSystemOps,
}
#[test]
fn bindgen_test_layout__PedFileSystemType() {
const UNINIT: ::std::mem::MaybeUninit<_PedFileSystemType> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedFileSystemType>(),
12usize,
concat!("Size of: ", stringify!(_PedFileSystemType))
);
assert_eq!(
::std::mem::align_of::<_PedFileSystemType>(),
4usize,
concat!("Alignment of ", stringify!(_PedFileSystemType))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystemType),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystemType),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ops) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystemType),
"::",
stringify!(ops)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedFileSystemAlias {
pub next: *mut PedFileSystemAlias,
pub fs_type: *mut PedFileSystemType,
pub alias: *const ::std::os::raw::c_char,
pub deprecated: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__PedFileSystemAlias() {
const UNINIT: ::std::mem::MaybeUninit<_PedFileSystemAlias> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedFileSystemAlias>(),
16usize,
concat!("Size of: ", stringify!(_PedFileSystemAlias))
);
assert_eq!(
::std::mem::align_of::<_PedFileSystemAlias>(),
4usize,
concat!("Alignment of ", stringify!(_PedFileSystemAlias))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystemAlias),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fs_type) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystemAlias),
"::",
stringify!(fs_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystemAlias),
"::",
stringify!(alias)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).deprecated) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystemAlias),
"::",
stringify!(deprecated)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedFileSystem {
pub type_: *mut PedFileSystemType,
pub geom: *mut PedGeometry,
pub checked: ::std::os::raw::c_int,
pub type_specific: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__PedFileSystem() {
const UNINIT: ::std::mem::MaybeUninit<_PedFileSystem> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedFileSystem>(),
16usize,
concat!("Size of: ", stringify!(_PedFileSystem))
);
assert_eq!(
::std::mem::align_of::<_PedFileSystem>(),
4usize,
concat!("Alignment of ", stringify!(_PedFileSystem))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystem),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).geom) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystem),
"::",
stringify!(geom)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).checked) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystem),
"::",
stringify!(checked)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_specific) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedFileSystem),
"::",
stringify!(type_specific)
)
);
}
extern "C" {
pub fn ped_file_system_type_register(type_: *mut PedFileSystemType);
}
extern "C" {
pub fn ped_file_system_type_unregister(type_: *mut PedFileSystemType);
}
extern "C" {
pub fn ped_file_system_alias_register(
type_: *mut PedFileSystemType,
alias: *const ::std::os::raw::c_char,
deprecated: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn ped_file_system_alias_unregister(
type_: *mut PedFileSystemType,
alias: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn ped_file_system_type_get(name: *const ::std::os::raw::c_char) -> *mut PedFileSystemType;
}
extern "C" {
pub fn ped_file_system_type_get_next(
fs_type: *const PedFileSystemType,
) -> *mut PedFileSystemType;
}
extern "C" {
pub fn ped_file_system_alias_get_next(
fs_alias: *const PedFileSystemAlias,
) -> *mut PedFileSystemAlias;
}
extern "C" {
pub fn ped_file_system_probe(geom: *mut PedGeometry) -> *mut PedFileSystemType;
}
extern "C" {
pub fn ped_file_system_probe_specific(
fs_type: *const PedFileSystemType,
geom: *mut PedGeometry,
) -> *mut PedGeometry;
}
extern "C" {
pub fn ped_file_system_open(geom: *mut PedGeometry) -> *mut PedFileSystem;
}
extern "C" {
pub fn ped_file_system_close(fs: *mut PedFileSystem) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_file_system_resize(
fs: *mut PedFileSystem,
geom: *mut PedGeometry,
timer: *mut PedTimer,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_file_system_get_resize_constraint(fs: *const PedFileSystem) -> *mut PedConstraint;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedPartition {
pub prev: *mut PedPartition,
pub next: *mut PedPartition,
pub disk: *mut PedDisk,
pub geom: PedGeometry,
pub num: ::std::os::raw::c_int,
pub type_: PedPartitionType,
pub fs_type: *const PedFileSystemType,
pub part_list: *mut PedPartition,
pub disk_specific: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__PedPartition() {
const UNINIT: ::std::mem::MaybeUninit<_PedPartition> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedPartition>(),
60usize,
concat!("Size of: ", stringify!(_PedPartition))
);
assert_eq!(
::std::mem::align_of::<_PedPartition>(),
4usize,
concat!("Alignment of ", stringify!(_PedPartition))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).prev) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(prev)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disk) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(disk)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).geom) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(geom)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).num) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(num)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fs_type) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(fs_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).part_list) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(part_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disk_specific) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(_PedPartition),
"::",
stringify!(disk_specific)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedDisk {
pub dev: *mut PedDevice,
pub type_: *const PedDiskType,
pub block_sizes: *const ::std::os::raw::c_int,
pub part_list: *mut PedPartition,
pub disk_specific: *mut ::std::os::raw::c_void,
pub needs_clobber: ::std::os::raw::c_int,
pub update_mode: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout__PedDisk() {
const UNINIT: ::std::mem::MaybeUninit<_PedDisk> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedDisk>(),
28usize,
concat!("Size of: ", stringify!(_PedDisk))
);
assert_eq!(
::std::mem::align_of::<_PedDisk>(),
4usize,
concat!("Alignment of ", stringify!(_PedDisk))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dev) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedDisk),
"::",
stringify!(dev)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedDisk),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).block_sizes) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedDisk),
"::",
stringify!(block_sizes)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).part_list) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedDisk),
"::",
stringify!(part_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disk_specific) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_PedDisk),
"::",
stringify!(disk_specific)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).needs_clobber) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(_PedDisk),
"::",
stringify!(needs_clobber)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).update_mode) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_PedDisk),
"::",
stringify!(update_mode)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedDiskOps {
pub probe:
::std::option::Option<unsafe extern "C" fn(dev: *const PedDevice) -> ::std::os::raw::c_int>,
pub clobber:
::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice) -> ::std::os::raw::c_int>,
pub alloc: ::std::option::Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedDisk>,
pub duplicate:
::std::option::Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedDisk>,
pub free: ::std::option::Option<unsafe extern "C" fn(disk: *mut PedDisk)>,
pub read:
::std::option::Option<unsafe extern "C" fn(disk: *mut PedDisk) -> ::std::os::raw::c_int>,
pub write:
::std::option::Option<unsafe extern "C" fn(disk: *const PedDisk) -> ::std::os::raw::c_int>,
pub disk_set_flag: ::std::option::Option<
unsafe extern "C" fn(
disk: *mut PedDisk,
flag: PedDiskFlag,
state: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub disk_get_flag: ::std::option::Option<
unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> ::std::os::raw::c_int,
>,
pub disk_is_flag_available: ::std::option::Option<
unsafe extern "C" fn(disk: *const PedDisk, flag: PedDiskFlag) -> ::std::os::raw::c_int,
>,
pub partition_new: ::std::option::Option<
unsafe extern "C" fn(
disk: *const PedDisk,
part_type: PedPartitionType,
fs_type: *const PedFileSystemType,
start: PedSector,
end: PedSector,
) -> *mut PedPartition,
>,
pub partition_duplicate:
::std::option::Option<unsafe extern "C" fn(part: *const PedPartition) -> *mut PedPartition>,
pub partition_destroy: ::std::option::Option<unsafe extern "C" fn(part: *mut PedPartition)>,
pub partition_set_system: ::std::option::Option<
unsafe extern "C" fn(
part: *mut PedPartition,
fs_type: *const PedFileSystemType,
) -> ::std::os::raw::c_int,
>,
pub partition_set_flag: ::std::option::Option<
unsafe extern "C" fn(
part: *mut PedPartition,
flag: PedPartitionFlag,
state: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub partition_get_flag: ::std::option::Option<
unsafe extern "C" fn(
part: *const PedPartition,
flag: PedPartitionFlag,
) -> ::std::os::raw::c_int,
>,
pub partition_is_flag_available: ::std::option::Option<
unsafe extern "C" fn(
part: *const PedPartition,
flag: PedPartitionFlag,
) -> ::std::os::raw::c_int,
>,
pub partition_set_name: ::std::option::Option<
unsafe extern "C" fn(part: *mut PedPartition, name: *const ::std::os::raw::c_char),
>,
pub partition_get_name: ::std::option::Option<
unsafe extern "C" fn(part: *const PedPartition) -> *const ::std::os::raw::c_char,
>,
pub partition_align: ::std::option::Option<
unsafe extern "C" fn(
part: *mut PedPartition,
constraint: *const PedConstraint,
) -> ::std::os::raw::c_int,
>,
pub partition_enumerate: ::std::option::Option<
unsafe extern "C" fn(part: *mut PedPartition) -> ::std::os::raw::c_int,
>,
pub partition_check:
::std::option::Option<unsafe extern "C" fn(part: *const PedPartition) -> bool>,
pub alloc_metadata:
::std::option::Option<unsafe extern "C" fn(disk: *mut PedDisk) -> ::std::os::raw::c_int>,
pub get_max_primary_partition_count:
::std::option::Option<unsafe extern "C" fn(disk: *const PedDisk) -> ::std::os::raw::c_int>,
pub get_max_supported_partition_count: ::std::option::Option<
unsafe extern "C" fn(disk: *const PedDisk, supported: *mut ::std::os::raw::c_int) -> bool,
>,
pub get_partition_alignment:
::std::option::Option<unsafe extern "C" fn(disk: *const PedDisk) -> *mut PedAlignment>,
pub max_length: ::std::option::Option<unsafe extern "C" fn() -> PedSector>,
pub max_start_sector: ::std::option::Option<unsafe extern "C" fn() -> PedSector>,
}
#[test]
fn bindgen_test_layout__PedDiskOps() {
const UNINIT: ::std::mem::MaybeUninit<_PedDiskOps> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedDiskOps>(),
112usize,
concat!("Size of: ", stringify!(_PedDiskOps))
);
assert_eq!(
::std::mem::align_of::<_PedDiskOps>(),
4usize,
concat!("Alignment of ", stringify!(_PedDiskOps))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).probe) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(probe)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).clobber) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(clobber)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).alloc) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(alloc)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).duplicate) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(duplicate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).free) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(free)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(read)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(write)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disk_set_flag) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(disk_set_flag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disk_get_flag) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(disk_get_flag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disk_is_flag_available) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(disk_is_flag_available)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_new) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_new)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_duplicate) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_duplicate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_destroy) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_destroy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_set_system) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_set_system)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_set_flag) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_set_flag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_get_flag) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_get_flag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_is_flag_available) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_is_flag_available)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_set_name) as usize - ptr as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_set_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_get_name) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_get_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_align) as usize - ptr as usize },
76usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_align)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_enumerate) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_enumerate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_check) as usize - ptr as usize },
84usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(partition_check)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).alloc_metadata) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(alloc_metadata)
)
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).get_max_primary_partition_count) as usize - ptr as usize
},
92usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(get_max_primary_partition_count)
)
);
assert_eq!(
unsafe {
::std::ptr::addr_of!((*ptr).get_max_supported_partition_count) as usize - ptr as usize
},
96usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(get_max_supported_partition_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_partition_alignment) as usize - ptr as usize },
100usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(get_partition_alignment)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_length) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(max_length)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_start_sector) as usize - ptr as usize },
108usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskOps),
"::",
stringify!(max_start_sector)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedDiskType {
pub next: *mut PedDiskType,
pub name: *const ::std::os::raw::c_char,
pub ops: *const _PedDiskOps,
pub features: PedDiskTypeFeature,
}
#[test]
fn bindgen_test_layout__PedDiskType() {
const UNINIT: ::std::mem::MaybeUninit<_PedDiskType> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedDiskType>(),
16usize,
concat!("Size of: ", stringify!(_PedDiskType))
);
assert_eq!(
::std::mem::align_of::<_PedDiskType>(),
4usize,
concat!("Alignment of ", stringify!(_PedDiskType))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).next) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskType),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskType),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ops) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskType),
"::",
stringify!(ops)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).features) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskType),
"::",
stringify!(features)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedDiskArchOps {
pub partition_get_path: ::std::option::Option<
unsafe extern "C" fn(part: *const PedPartition) -> *mut ::std::os::raw::c_char,
>,
pub partition_is_busy: ::std::option::Option<
unsafe extern "C" fn(part: *const PedPartition) -> ::std::os::raw::c_int,
>,
pub disk_commit:
::std::option::Option<unsafe extern "C" fn(disk: *mut PedDisk) -> ::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout__PedDiskArchOps() {
const UNINIT: ::std::mem::MaybeUninit<_PedDiskArchOps> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedDiskArchOps>(),
12usize,
concat!("Size of: ", stringify!(_PedDiskArchOps))
);
assert_eq!(
::std::mem::align_of::<_PedDiskArchOps>(),
4usize,
concat!("Alignment of ", stringify!(_PedDiskArchOps))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_get_path) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskArchOps),
"::",
stringify!(partition_get_path)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).partition_is_busy) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskArchOps),
"::",
stringify!(partition_is_busy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disk_commit) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedDiskArchOps),
"::",
stringify!(disk_commit)
)
);
}
extern "C" {
pub fn ped_disk_type_register(type_: *mut PedDiskType);
}
extern "C" {
pub fn ped_disk_type_unregister(type_: *mut PedDiskType);
}
extern "C" {
pub fn ped_disk_type_get_next(type_: *const PedDiskType) -> *mut PedDiskType;
}
extern "C" {
pub fn ped_disk_type_get(name: *const ::std::os::raw::c_char) -> *mut PedDiskType;
}
extern "C" {
pub fn ped_disk_type_check_feature(
disk_type: *const PedDiskType,
feature: PedDiskTypeFeature,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_probe(dev: *mut PedDevice) -> *mut PedDiskType;
}
extern "C" {
pub fn ped_disk_clobber(dev: *mut PedDevice) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_new(dev: *mut PedDevice) -> *mut PedDisk;
}
extern "C" {
pub fn ped_disk_new_fresh(dev: *mut PedDevice, disk_type: *const PedDiskType) -> *mut PedDisk;
}
extern "C" {
pub fn ped_disk_duplicate(old_disk: *const PedDisk) -> *mut PedDisk;
}
extern "C" {
pub fn ped_disk_destroy(disk: *mut PedDisk);
}
extern "C" {
pub fn ped_disk_commit(disk: *mut PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_commit_to_dev(disk: *mut PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_commit_to_os(disk: *mut PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_check(disk: *const PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_print(disk: *const PedDisk);
}
extern "C" {
pub fn ped_disk_get_primary_partition_count(disk: *const PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_get_last_partition_num(disk: *const PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_get_max_primary_partition_count(disk: *const PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_get_max_supported_partition_count(
disk: *const PedDisk,
supported: *mut ::std::os::raw::c_int,
) -> bool;
}
extern "C" {
pub fn ped_disk_get_partition_alignment(disk: *const PedDisk) -> *mut PedAlignment;
}
extern "C" {
pub fn ped_disk_set_flag(
disk: *mut PedDisk,
flag: PedDiskFlag,
state: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_get_flag(disk: *const PedDisk, flag: PedDiskFlag) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_is_flag_available(
disk: *const PedDisk,
flag: PedDiskFlag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_flag_get_name(flag: PedDiskFlag) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_disk_flag_get_by_name(name: *const ::std::os::raw::c_char) -> PedDiskFlag;
}
extern "C" {
pub fn ped_disk_flag_next(flag: PedDiskFlag) -> PedDiskFlag;
}
extern "C" {
pub fn ped_partition_new(
disk: *const PedDisk,
type_: PedPartitionType,
fs_type: *const PedFileSystemType,
start: PedSector,
end: PedSector,
) -> *mut PedPartition;
}
extern "C" {
pub fn ped_partition_destroy(part: *mut PedPartition);
}
extern "C" {
pub fn ped_partition_is_active(part: *const PedPartition) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_partition_set_flag(
part: *mut PedPartition,
flag: PedPartitionFlag,
state: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_partition_get_flag(
part: *const PedPartition,
flag: PedPartitionFlag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_partition_is_flag_available(
part: *const PedPartition,
flag: PedPartitionFlag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_partition_set_system(
part: *mut PedPartition,
fs_type: *const PedFileSystemType,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_partition_set_name(
part: *mut PedPartition,
name: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_partition_get_name(part: *const PedPartition) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_partition_is_busy(part: *const PedPartition) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_partition_get_path(part: *const PedPartition) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_partition_type_get_name(
part_type: PedPartitionType,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_partition_flag_get_name(flag: PedPartitionFlag) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_partition_flag_get_by_name(name: *const ::std::os::raw::c_char) -> PedPartitionFlag;
}
extern "C" {
pub fn ped_partition_flag_next(flag: PedPartitionFlag) -> PedPartitionFlag;
}
extern "C" {
pub fn ped_disk_add_partition(
disk: *mut PedDisk,
part: *mut PedPartition,
constraint: *const PedConstraint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_remove_partition(
disk: *mut PedDisk,
part: *mut PedPartition,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_delete_partition(
disk: *mut PedDisk,
part: *mut PedPartition,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_delete_all(disk: *mut PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_set_partition_geom(
disk: *mut PedDisk,
part: *mut PedPartition,
constraint: *const PedConstraint,
start: PedSector,
end: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_maximize_partition(
disk: *mut PedDisk,
part: *mut PedPartition,
constraint: *const PedConstraint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_get_max_partition_geometry(
disk: *mut PedDisk,
part: *mut PedPartition,
constraint: *const PedConstraint,
) -> *mut PedGeometry;
}
extern "C" {
pub fn ped_disk_minimize_extended_partition(disk: *mut PedDisk) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_disk_next_partition(
disk: *const PedDisk,
part: *const PedPartition,
) -> *mut PedPartition;
}
extern "C" {
pub fn ped_disk_get_partition(
disk: *const PedDisk,
num: ::std::os::raw::c_int,
) -> *mut PedPartition;
}
extern "C" {
pub fn ped_disk_get_partition_by_sector(
disk: *const PedDisk,
sect: PedSector,
) -> *mut PedPartition;
}
extern "C" {
pub fn ped_disk_extended_partition(disk: *const PedDisk) -> *mut PedPartition;
}
extern "C" {
pub fn ped_disk_max_partition_length(disk: *const PedDisk) -> PedSector;
}
extern "C" {
pub fn ped_disk_max_partition_start_sector(disk: *const PedDisk) -> PedSector;
}
extern "C" {
pub fn _ped_disk_alloc(dev: *const PedDevice, type_: *const PedDiskType) -> *mut PedDisk;
}
extern "C" {
pub fn _ped_disk_free(disk: *mut PedDisk);
}
extern "C" {
pub fn _ped_partition_alloc(
disk: *const PedDisk,
type_: PedPartitionType,
fs_type: *const PedFileSystemType,
start: PedSector,
end: PedSector,
) -> *mut PedPartition;
}
extern "C" {
pub fn _ped_partition_free(part: *mut PedPartition);
}
extern "C" {
pub fn _ped_partition_attempt_align(
part: *mut PedPartition,
external: *const PedConstraint,
internal: *mut PedConstraint,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedAlignment {
pub offset: PedSector,
pub grain_size: PedSector,
}
#[test]
fn bindgen_test_layout__PedAlignment() {
const UNINIT: ::std::mem::MaybeUninit<_PedAlignment> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedAlignment>(),
16usize,
concat!("Size of: ", stringify!(_PedAlignment))
);
assert_eq!(
::std::mem::align_of::<_PedAlignment>(),
4usize,
concat!("Alignment of ", stringify!(_PedAlignment))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).offset) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedAlignment),
"::",
stringify!(offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).grain_size) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedAlignment),
"::",
stringify!(grain_size)
)
);
}
extern "C" {
pub fn ped_round_up_to(sector: PedSector, grain_size: PedSector) -> PedSector;
}
extern "C" {
pub fn ped_round_down_to(sector: PedSector, grain_size: PedSector) -> PedSector;
}
extern "C" {
pub fn ped_round_to_nearest(sector: PedSector, grain_size: PedSector) -> PedSector;
}
extern "C" {
pub fn ped_greatest_common_divisor(a: PedSector, b: PedSector) -> PedSector;
}
extern "C" {
pub fn ped_alignment_init(
align: *mut PedAlignment,
offset: PedSector,
grain_size: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_alignment_new(offset: PedSector, grain_size: PedSector) -> *mut PedAlignment;
}
extern "C" {
pub fn ped_alignment_destroy(align: *mut PedAlignment);
}
extern "C" {
pub fn ped_alignment_duplicate(align: *const PedAlignment) -> *mut PedAlignment;
}
extern "C" {
pub fn ped_alignment_intersect(
a: *const PedAlignment,
b: *const PedAlignment,
) -> *mut PedAlignment;
}
extern "C" {
pub fn ped_alignment_align_up(
align: *const PedAlignment,
geom: *const PedGeometry,
sector: PedSector,
) -> PedSector;
}
extern "C" {
pub fn ped_alignment_align_down(
align: *const PedAlignment,
geom: *const PedGeometry,
sector: PedSector,
) -> PedSector;
}
extern "C" {
pub fn ped_alignment_align_nearest(
align: *const PedAlignment,
geom: *const PedGeometry,
sector: PedSector,
) -> PedSector;
}
extern "C" {
pub fn ped_alignment_is_aligned(
align: *const PedAlignment,
geom: *const PedGeometry,
sector: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub static mut ped_alignment_any: *const PedAlignment;
}
extern "C" {
pub static mut ped_alignment_none: *const PedAlignment;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedDeviceArchOps {
pub _new: ::std::option::Option<
unsafe extern "C" fn(path: *const ::std::os::raw::c_char) -> *mut PedDevice,
>,
pub destroy: ::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice)>,
pub is_busy:
::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice) -> ::std::os::raw::c_int>,
pub open:
::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice) -> ::std::os::raw::c_int>,
pub refresh_open:
::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice) -> ::std::os::raw::c_int>,
pub close:
::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice) -> ::std::os::raw::c_int>,
pub refresh_close:
::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice) -> ::std::os::raw::c_int>,
pub read: ::std::option::Option<
unsafe extern "C" fn(
dev: *const PedDevice,
buffer: *mut ::std::os::raw::c_void,
start: PedSector,
count: PedSector,
) -> ::std::os::raw::c_int,
>,
pub write: ::std::option::Option<
unsafe extern "C" fn(
dev: *mut PedDevice,
buffer: *const ::std::os::raw::c_void,
start: PedSector,
count: PedSector,
) -> ::std::os::raw::c_int,
>,
pub sync:
::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice) -> ::std::os::raw::c_int>,
pub sync_fast:
::std::option::Option<unsafe extern "C" fn(dev: *mut PedDevice) -> ::std::os::raw::c_int>,
pub check: ::std::option::Option<
unsafe extern "C" fn(
dev: *mut PedDevice,
buffer: *mut ::std::os::raw::c_void,
start: PedSector,
count: PedSector,
) -> PedSector,
>,
pub probe_all: ::std::option::Option<unsafe extern "C" fn()>,
pub get_minimum_alignment:
::std::option::Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedAlignment>,
pub get_optimum_alignment:
::std::option::Option<unsafe extern "C" fn(dev: *const PedDevice) -> *mut PedAlignment>,
}
#[test]
fn bindgen_test_layout__PedDeviceArchOps() {
const UNINIT: ::std::mem::MaybeUninit<_PedDeviceArchOps> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedDeviceArchOps>(),
60usize,
concat!("Size of: ", stringify!(_PedDeviceArchOps))
);
assert_eq!(
::std::mem::align_of::<_PedDeviceArchOps>(),
4usize,
concat!("Alignment of ", stringify!(_PedDeviceArchOps))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._new) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(_new)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(destroy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).is_busy) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(is_busy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).open) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(open)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).refresh_open) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(refresh_open)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).close) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(close)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).refresh_close) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(refresh_close)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(read)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).write) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(write)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sync) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(sync)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sync_fast) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(sync_fast)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).check) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(check)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).probe_all) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(probe_all)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_minimum_alignment) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(get_minimum_alignment)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_optimum_alignment) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(_PedDeviceArchOps),
"::",
stringify!(get_optimum_alignment)
)
);
}
extern "C" {
pub fn ped_device_probe_all();
}
extern "C" {
pub fn ped_device_free_all();
}
extern "C" {
pub fn ped_device_get(name: *const ::std::os::raw::c_char) -> *mut PedDevice;
}
extern "C" {
pub fn ped_device_get_next(dev: *const PedDevice) -> *mut PedDevice;
}
extern "C" {
pub fn ped_device_is_busy(dev: *mut PedDevice) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_open(dev: *mut PedDevice) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_close(dev: *mut PedDevice) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_destroy(dev: *mut PedDevice);
}
extern "C" {
pub fn ped_device_cache_remove(dev: *mut PedDevice);
}
extern "C" {
pub fn ped_device_begin_external_access(dev: *mut PedDevice) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_end_external_access(dev: *mut PedDevice) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_read(
dev: *const PedDevice,
buffer: *mut ::std::os::raw::c_void,
start: PedSector,
count: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_write(
dev: *mut PedDevice,
buffer: *const ::std::os::raw::c_void,
start: PedSector,
count: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_sync(dev: *mut PedDevice) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_sync_fast(dev: *mut PedDevice) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_device_check(
dev: *mut PedDevice,
buffer: *mut ::std::os::raw::c_void,
start: PedSector,
count: PedSector,
) -> PedSector;
}
extern "C" {
pub fn ped_device_get_constraint(dev: *const PedDevice) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_device_get_minimal_aligned_constraint(dev: *const PedDevice) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_device_get_optimal_aligned_constraint(dev: *const PedDevice) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_device_get_minimum_alignment(dev: *const PedDevice) -> *mut PedAlignment;
}
extern "C" {
pub fn ped_device_get_optimum_alignment(dev: *const PedDevice) -> *mut PedAlignment;
}
extern "C" {
pub fn _ped_device_probe(path: *const ::std::os::raw::c_char);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedConstraint {
pub start_align: *mut PedAlignment,
pub end_align: *mut PedAlignment,
pub start_range: *mut PedGeometry,
pub end_range: *mut PedGeometry,
pub min_size: PedSector,
pub max_size: PedSector,
}
#[test]
fn bindgen_test_layout__PedConstraint() {
const UNINIT: ::std::mem::MaybeUninit<_PedConstraint> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedConstraint>(),
32usize,
concat!("Size of: ", stringify!(_PedConstraint))
);
assert_eq!(
::std::mem::align_of::<_PedConstraint>(),
4usize,
concat!("Alignment of ", stringify!(_PedConstraint))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedConstraint),
"::",
stringify!(start_align)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_align) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedConstraint),
"::",
stringify!(end_align)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start_range) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedConstraint),
"::",
stringify!(start_range)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_range) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_PedConstraint),
"::",
stringify!(end_range)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).min_size) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_PedConstraint),
"::",
stringify!(min_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).max_size) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_PedConstraint),
"::",
stringify!(max_size)
)
);
}
extern "C" {
pub fn ped_constraint_init(
constraint: *mut PedConstraint,
start_align: *const PedAlignment,
end_align: *const PedAlignment,
start_range: *const PedGeometry,
end_range: *const PedGeometry,
min_size: PedSector,
max_size: PedSector,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_constraint_new(
start_align: *const PedAlignment,
end_align: *const PedAlignment,
start_range: *const PedGeometry,
end_range: *const PedGeometry,
min_size: PedSector,
max_size: PedSector,
) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_constraint_new_from_min_max(
min: *const PedGeometry,
max: *const PedGeometry,
) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_constraint_new_from_min(min: *const PedGeometry) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_constraint_new_from_max(max: *const PedGeometry) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_constraint_duplicate(constraint: *const PedConstraint) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_constraint_done(constraint: *mut PedConstraint);
}
extern "C" {
pub fn ped_constraint_destroy(constraint: *mut PedConstraint);
}
extern "C" {
pub fn ped_constraint_intersect(
a: *const PedConstraint,
b: *const PedConstraint,
) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_constraint_solve_max(constraint: *const PedConstraint) -> *mut PedGeometry;
}
extern "C" {
pub fn ped_constraint_solve_nearest(
constraint: *const PedConstraint,
geom: *const PedGeometry,
) -> *mut PedGeometry;
}
extern "C" {
pub fn ped_constraint_is_solution(
constraint: *const PedConstraint,
geom: *const PedGeometry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_constraint_any(dev: *const PedDevice) -> *mut PedConstraint;
}
extern "C" {
pub fn ped_constraint_exact(geom: *const PedGeometry) -> *mut PedConstraint;
}
pub type PedException = _PedException;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _PedExceptionType {
PED_EXCEPTION_INFORMATION = 1,
PED_EXCEPTION_WARNING = 2,
PED_EXCEPTION_ERROR = 3,
PED_EXCEPTION_FATAL = 4,
PED_EXCEPTION_BUG = 5,
PED_EXCEPTION_NO_FEATURE = 6,
}
pub use self::_PedExceptionType as PedExceptionType;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum _PedExceptionOption {
PED_EXCEPTION_UNHANDLED = 0,
PED_EXCEPTION_FIX = 1,
PED_EXCEPTION_YES = 2,
PED_EXCEPTION_NO = 4,
PED_EXCEPTION_OK = 8,
PED_EXCEPTION_RETRY = 16,
PED_EXCEPTION_IGNORE = 32,
PED_EXCEPTION_CANCEL = 64,
}
pub use self::_PedExceptionOption as PedExceptionOption;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _PedException {
pub message: *mut ::std::os::raw::c_char,
pub type_: PedExceptionType,
pub options: PedExceptionOption,
}
#[test]
fn bindgen_test_layout__PedException() {
const UNINIT: ::std::mem::MaybeUninit<_PedException> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_PedException>(),
12usize,
concat!("Size of: ", stringify!(_PedException))
);
assert_eq!(
::std::mem::align_of::<_PedException>(),
4usize,
concat!("Alignment of ", stringify!(_PedException))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).message) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_PedException),
"::",
stringify!(message)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).type_) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_PedException),
"::",
stringify!(type_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).options) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_PedException),
"::",
stringify!(options)
)
);
}
pub type PedExceptionHandler =
::std::option::Option<unsafe extern "C" fn(ex: *mut PedException) -> PedExceptionOption>;
extern "C" {
pub static mut ped_exception: ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_exception_get_type_string(ex_type: PedExceptionType) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_exception_get_option_string(
ex_opt: PedExceptionOption,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_exception_set_handler(handler: PedExceptionHandler);
}
extern "C" {
pub fn ped_exception_get_handler() -> PedExceptionHandler;
}
extern "C" {
pub fn ped_exception_default_handler(ex: *mut PedException) -> PedExceptionOption;
}
extern "C" {
pub fn ped_exception_throw(
ex_type: PedExceptionType,
ex_opt: PedExceptionOption,
message: *const ::std::os::raw::c_char,
...
) -> PedExceptionOption;
}
extern "C" {
pub fn ped_exception_rethrow() -> PedExceptionOption;
}
extern "C" {
pub fn ped_exception_catch();
}
extern "C" {
pub fn ped_exception_fetch_all();
}
extern "C" {
pub fn ped_exception_leave_all();
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __mbstate_t {
pub __count: ::std::os::raw::c_int,
pub __value: __mbstate_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t__bindgen_ty_1 {
pub __wch: ::std::os::raw::c_uint,
pub __wchb: [::std::os::raw::c_char; 4usize],
}
#[test]
fn bindgen_test_layout___mbstate_t__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<__mbstate_t__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__mbstate_t__bindgen_ty_1>(),
4usize,
concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__mbstate_t__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wch) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t__bindgen_ty_1),
"::",
stringify!(__wch)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wchb) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t__bindgen_ty_1),
"::",
stringify!(__wchb)
)
);
}
#[test]
fn bindgen_test_layout___mbstate_t() {
const UNINIT: ::std::mem::MaybeUninit<__mbstate_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__mbstate_t>(),
8usize,
concat!("Size of: ", stringify!(__mbstate_t))
);
assert_eq!(
::std::mem::align_of::<__mbstate_t>(),
4usize,
concat!("Alignment of ", stringify!(__mbstate_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t),
"::",
stringify!(__count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t),
"::",
stringify!(__value)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos_t {
pub __pos: __off_t,
pub __state: __mbstate_t,
}
#[test]
fn bindgen_test_layout__G_fpos_t() {
const UNINIT: ::std::mem::MaybeUninit<_G_fpos_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_G_fpos_t>(),
12usize,
concat!("Size of: ", stringify!(_G_fpos_t))
);
assert_eq!(
::std::mem::align_of::<_G_fpos_t>(),
4usize,
concat!("Alignment of ", stringify!(_G_fpos_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos_t),
"::",
stringify!(__pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos_t),
"::",
stringify!(__state)
)
);
}
pub type __fpos_t = _G_fpos_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos64_t {
pub __pos: __off64_t,
pub __state: __mbstate_t,
}
#[test]
fn bindgen_test_layout__G_fpos64_t() {
const UNINIT: ::std::mem::MaybeUninit<_G_fpos64_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_G_fpos64_t>(),
16usize,
concat!("Size of: ", stringify!(_G_fpos64_t))
);
assert_eq!(
::std::mem::align_of::<_G_fpos64_t>(),
4usize,
concat!("Alignment of ", stringify!(_G_fpos64_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos64_t),
"::",
stringify!(__pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos64_t),
"::",
stringify!(__state)
)
);
}
pub type __fpos64_t = _G_fpos64_t;
pub type __FILE = _IO_FILE;
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
_unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
pub _flags: ::std::os::raw::c_int,
pub _IO_read_ptr: *mut ::std::os::raw::c_char,
pub _IO_read_end: *mut ::std::os::raw::c_char,
pub _IO_read_base: *mut ::std::os::raw::c_char,
pub _IO_write_base: *mut ::std::os::raw::c_char,
pub _IO_write_ptr: *mut ::std::os::raw::c_char,
pub _IO_write_end: *mut ::std::os::raw::c_char,
pub _IO_buf_base: *mut ::std::os::raw::c_char,
pub _IO_buf_end: *mut ::std::os::raw::c_char,
pub _IO_save_base: *mut ::std::os::raw::c_char,
pub _IO_backup_base: *mut ::std::os::raw::c_char,
pub _IO_save_end: *mut ::std::os::raw::c_char,
pub _markers: *mut _IO_marker,
pub _chain: *mut _IO_FILE,
pub _fileno: ::std::os::raw::c_int,
pub _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_schar,
pub _shortbuf: [::std::os::raw::c_char; 1usize],
pub _lock: *mut _IO_lock_t,
pub _offset: __off64_t,
pub _codecvt: *mut _IO_codecvt,
pub _wide_data: *mut _IO_wide_data,
pub _freeres_list: *mut _IO_FILE,
pub _freeres_buf: *mut ::std::os::raw::c_void,
pub __pad5: usize,
pub _mode: ::std::os::raw::c_int,
pub _unused2: [::std::os::raw::c_char; 40usize],
}
#[test]
fn bindgen_test_layout__IO_FILE() {
const UNINIT: ::std::mem::MaybeUninit<_IO_FILE> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_IO_FILE>(),
148usize,
concat!("Size of: ", stringify!(_IO_FILE))
);
assert_eq!(
::std::mem::align_of::<_IO_FILE>(),
4usize,
concat!("Alignment of ", stringify!(_IO_FILE))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._flags) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_ptr) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_end) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_base) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_base) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_ptr) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_end) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_base) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_buf_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_end) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_buf_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_base) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_save_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_backup_base) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_backup_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_end) as usize - ptr as usize },
44usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_save_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._markers) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_markers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._chain) as usize - ptr as usize },
52usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_chain)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._fileno) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_fileno)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._flags2) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_flags2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._old_offset) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_old_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._cur_column) as usize - ptr as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_cur_column)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._vtable_offset) as usize - ptr as usize },
70usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_vtable_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._shortbuf) as usize - ptr as usize },
71usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_shortbuf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._lock) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_lock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._offset) as usize - ptr as usize },
76usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._codecvt) as usize - ptr as usize },
84usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_codecvt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._wide_data) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_wide_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._freeres_list) as usize - ptr as usize },
92usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_freeres_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._freeres_buf) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_freeres_buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad5) as usize - ptr as usize },
100usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(__pad5)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._mode) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_mode)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._unused2) as usize - ptr as usize },
108usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_unused2)
)
);
}
pub type off_t = __off_t;
pub type fpos_t = __fpos_t;
extern "C" {
pub static mut stdin: *mut FILE;
}
extern "C" {
pub static mut stdout: *mut FILE;
}
extern "C" {
pub static mut stderr: *mut FILE;
}
extern "C" {
pub fn remove(__filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rename(
__old: *const ::std::os::raw::c_char,
__new: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn renameat(
__oldfd: ::std::os::raw::c_int,
__old: *const ::std::os::raw::c_char,
__newfd: ::std::os::raw::c_int,
__new: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn tmpfile() -> *mut FILE;
}
extern "C" {
pub fn tmpnam(arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn tmpnam_r(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn tempnam(
__dir: *const ::std::os::raw::c_char,
__pfx: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fflush(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fflush_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fopen(
__filename: *const ::std::os::raw::c_char,
__modes: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn freopen(
__filename: *const ::std::os::raw::c_char,
__modes: *const ::std::os::raw::c_char,
__stream: *mut FILE,
) -> *mut FILE;
}
extern "C" {
pub fn fdopen(__fd: ::std::os::raw::c_int, __modes: *const ::std::os::raw::c_char)
-> *mut FILE;
}
extern "C" {
pub fn fmemopen(
__s: *mut ::std::os::raw::c_void,
__len: usize,
__modes: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn open_memstream(
__bufloc: *mut *mut ::std::os::raw::c_char,
__sizeloc: *mut usize,
) -> *mut FILE;
}
extern "C" {
pub fn setbuf(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn setvbuf(
__stream: *mut FILE,
__buf: *mut ::std::os::raw::c_char,
__modes: ::std::os::raw::c_int,
__n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setbuffer(__stream: *mut FILE, __buf: *mut ::std::os::raw::c_char, __size: usize);
}
extern "C" {
pub fn setlinebuf(__stream: *mut FILE);
}
extern "C" {
pub fn fprintf(
__stream: *mut FILE,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn printf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sprintf(
__s: *mut ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vfprintf(
__s: *mut FILE,
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vprintf(
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsprintf(
__s: *mut ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn snprintf(
__s: *mut ::std::os::raw::c_char,
__maxlen: ::std::os::raw::c_uint,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsnprintf(
__s: *mut ::std::os::raw::c_char,
__maxlen: ::std::os::raw::c_uint,
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vdprintf(
__fd: ::std::os::raw::c_int,
__fmt: *const ::std::os::raw::c_char,
__arg: __gnuc_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn dprintf(
__fd: ::std::os::raw::c_int,
__fmt: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fscanf(
__stream: *mut FILE,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sscanf(
__s: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
pub type _Float32 = f32;
pub type _Float64 = f64;
pub type _Float32x = f64;
pub type _Float64x = f64;
extern "C" {
#[link_name = "\u{1}__isoc99_fscanf"]
pub fn fscanf1(
__stream: *mut FILE,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_scanf"]
pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_sscanf"]
pub fn sscanf1(
__s: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vfscanf(
__s: *mut FILE,
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vscanf(
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsscanf(
__s: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vfscanf"]
pub fn vfscanf1(
__s: *mut FILE,
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vscanf"]
pub fn vscanf1(
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vsscanf"]
pub fn vsscanf1(
__s: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
__arg: __builtin_va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getchar() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getchar_unlocked() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgets(
__s: *mut ::std::os::raw::c_char,
__n: ::std::os::raw::c_int,
__stream: *mut FILE,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn __getdelim(
__lineptr: *mut *mut ::std::os::raw::c_char,
__n: *mut usize,
__delimiter: ::std::os::raw::c_int,
__stream: *mut FILE,
) -> __ssize_t;
}
extern "C" {
pub fn getdelim(
__lineptr: *mut *mut ::std::os::raw::c_char,
__n: *mut usize,
__delimiter: ::std::os::raw::c_int,
__stream: *mut FILE,
) -> __ssize_t;
}
extern "C" {
pub fn getline(
__lineptr: *mut *mut ::std::os::raw::c_char,
__n: *mut usize,
__stream: *mut FILE,
) -> __ssize_t;
}
extern "C" {
pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fread(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_uint,
__n: ::std::os::raw::c_uint,
__stream: *mut FILE,
) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn fwrite(
__ptr: *const ::std::os::raw::c_void,
__size: ::std::os::raw::c_uint,
__n: ::std::os::raw::c_uint,
__s: *mut FILE,
) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn fread_unlocked(
__ptr: *mut ::std::os::raw::c_void,
__size: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fwrite_unlocked(
__ptr: *const ::std::os::raw::c_void,
__size: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fseek(
__stream: *mut FILE,
__off: ::std::os::raw::c_long,
__whence: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn rewind(__stream: *mut FILE);
}
extern "C" {
pub fn fseeko(
__stream: *mut FILE,
__off: __off_t,
__whence: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftello(__stream: *mut FILE) -> __off_t;
}
extern "C" {
pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clearerr(__stream: *mut FILE);
}
extern "C" {
pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clearerr_unlocked(__stream: *mut FILE);
}
extern "C" {
pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn perror(__s: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn popen(
__command: *const ::std::os::raw::c_char,
__modes: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn flockfile(__stream: *mut FILE);
}
extern "C" {
pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn funlockfile(__stream: *mut FILE);
}
extern "C" {
pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum PedUnit {
PED_UNIT_SECTOR = 0,
PED_UNIT_BYTE = 1,
PED_UNIT_KILOBYTE = 2,
PED_UNIT_MEGABYTE = 3,
PED_UNIT_GIGABYTE = 4,
PED_UNIT_TERABYTE = 5,
PED_UNIT_COMPACT = 6,
PED_UNIT_CYLINDER = 7,
PED_UNIT_CHS = 8,
PED_UNIT_PERCENT = 9,
PED_UNIT_KIBIBYTE = 10,
PED_UNIT_MEBIBYTE = 11,
PED_UNIT_GIBIBYTE = 12,
PED_UNIT_TEBIBYTE = 13,
}
extern "C" {
pub fn ped_unit_get_size(dev: *const PedDevice, unit: PedUnit) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn ped_unit_get_name(unit: PedUnit) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_unit_get_by_name(unit_name: *const ::std::os::raw::c_char) -> PedUnit;
}
extern "C" {
pub fn ped_unit_set_default(unit: PedUnit);
}
extern "C" {
pub fn ped_unit_get_default() -> PedUnit;
}
extern "C" {
pub fn ped_unit_format_byte(
dev: *const PedDevice,
byte: PedSector,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_unit_format_custom_byte(
dev: *const PedDevice,
byte: PedSector,
unit: PedUnit,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_unit_format(dev: *const PedDevice, sector: PedSector)
-> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_unit_format_custom(
dev: *const PedDevice,
sector: PedSector,
unit: PedUnit,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_unit_parse(
str_: *const ::std::os::raw::c_char,
dev: *const PedDevice,
sector: *mut PedSector,
range: *mut *mut PedGeometry,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ped_unit_parse_custom(
str_: *const ::std::os::raw::c_char,
dev: *const PedDevice,
unit: PedUnit,
sector: *mut PedSector,
range: *mut *mut PedGeometry,
) -> ::std::os::raw::c_int;
}
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_int;
pub type int_fast32_t = ::std::os::raw::c_int;
pub type int_fast64_t = ::std::os::raw::c_longlong;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_uint;
pub type uint_fast32_t = ::std::os::raw::c_uint;
pub type uint_fast64_t = ::std::os::raw::c_ulonglong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct div_t {
pub quot: ::std::os::raw::c_int,
pub rem: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_div_t() {
const UNINIT: ::std::mem::MaybeUninit<div_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<div_t>(),
8usize,
concat!("Size of: ", stringify!(div_t))
);
assert_eq!(
::std::mem::align_of::<div_t>(),
4usize,
concat!("Alignment of ", stringify!(div_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(div_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(div_t),
"::",
stringify!(rem)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ldiv_t {
pub quot: ::std::os::raw::c_long,
pub rem: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_ldiv_t() {
const UNINIT: ::std::mem::MaybeUninit<ldiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<ldiv_t>(),
8usize,
concat!("Size of: ", stringify!(ldiv_t))
);
assert_eq!(
::std::mem::align_of::<ldiv_t>(),
4usize,
concat!("Alignment of ", stringify!(ldiv_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(ldiv_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(ldiv_t),
"::",
stringify!(rem)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lldiv_t {
pub quot: ::std::os::raw::c_longlong,
pub rem: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout_lldiv_t() {
const UNINIT: ::std::mem::MaybeUninit<lldiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lldiv_t>(),
16usize,
concat!("Size of: ", stringify!(lldiv_t))
);
assert_eq!(
::std::mem::align_of::<lldiv_t>(),
4usize,
concat!("Alignment of ", stringify!(lldiv_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lldiv_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lldiv_t),
"::",
stringify!(rem)
)
);
}
extern "C" {
pub fn __ctype_get_mb_cur_max() -> usize;
}
extern "C" {
pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtod(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn strtof(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> f32;
}
extern "C" {
pub fn strtold(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn strtol(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn strtoul(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strtoq(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtouq(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn strtoll(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtoull(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_int8_t = __uint8_t;
pub type u_int16_t = __uint16_t;
pub type u_int32_t = __uint32_t;
pub type u_int64_t = __uint64_t;
pub type register_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
pub __val: [::std::os::raw::c_ulong; 32usize],
}
#[test]
fn bindgen_test_layout___sigset_t() {
const UNINIT: ::std::mem::MaybeUninit<__sigset_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__sigset_t>(),
128usize,
concat!("Size of: ", stringify!(__sigset_t))
);
assert_eq!(
::std::mem::align_of::<__sigset_t>(),
4usize,
concat!("Alignment of ", stringify!(__sigset_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__sigset_t),
"::",
stringify!(__val)
)
);
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
pub tv_sec: __time_t,
pub tv_usec: __suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
const UNINIT: ::std::mem::MaybeUninit<timeval> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<timeval>(),
8usize,
concat!("Size of: ", stringify!(timeval))
);
assert_eq!(
::std::mem::align_of::<timeval>(),
4usize,
concat!("Alignment of ", stringify!(timeval))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(timeval),
"::",
stringify!(tv_sec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(timeval),
"::",
stringify!(tv_usec)
)
);
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
pub __fds_bits: [__fd_mask; 32usize],
}
#[test]
fn bindgen_test_layout_fd_set() {
const UNINIT: ::std::mem::MaybeUninit<fd_set> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<fd_set>(),
128usize,
concat!("Size of: ", stringify!(fd_set))
);
assert_eq!(
::std::mem::align_of::<fd_set>(),
4usize,
concat!("Alignment of ", stringify!(fd_set))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fds_bits) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(fd_set),
"::",
stringify!(__fds_bits)
)
);
}
pub type fd_mask = __fd_mask;
extern "C" {
pub fn select(
__nfds: ::std::os::raw::c_int,
__readfds: *mut fd_set,
__writefds: *mut fd_set,
__exceptfds: *mut fd_set,
__timeout: *mut timeval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pselect(
__nfds: ::std::os::raw::c_int,
__readfds: *mut fd_set,
__writefds: *mut fd_set,
__exceptfds: *mut fd_set,
__timeout: *const timespec,
__sigmask: *const __sigset_t,
) -> ::std::os::raw::c_int;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __atomic_wide_counter {
pub __value64: ::std::os::raw::c_ulonglong,
pub __value32: __atomic_wide_counter__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __atomic_wide_counter__bindgen_ty_1 {
pub __low: ::std::os::raw::c_uint,
pub __high: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<__atomic_wide_counter__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__atomic_wide_counter__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(__atomic_wide_counter__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__atomic_wide_counter__bindgen_ty_1>(),
4usize,
concat!(
"Alignment of ",
stringify!(__atomic_wide_counter__bindgen_ty_1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__low) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter__bindgen_ty_1),
"::",
stringify!(__low)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__high) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter__bindgen_ty_1),
"::",
stringify!(__high)
)
);
}
#[test]
fn bindgen_test_layout___atomic_wide_counter() {
const UNINIT: ::std::mem::MaybeUninit<__atomic_wide_counter> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__atomic_wide_counter>(),
8usize,
concat!("Size of: ", stringify!(__atomic_wide_counter))
);
assert_eq!(
::std::mem::align_of::<__atomic_wide_counter>(),
4usize,
concat!("Alignment of ", stringify!(__atomic_wide_counter))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value64) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter),
"::",
stringify!(__value64)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value32) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter),
"::",
stringify!(__value32)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
pub __prev: *mut __pthread_internal_list,
pub __next: *mut __pthread_internal_list,
}
#[test]
fn bindgen_test_layout___pthread_internal_list() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_list> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_internal_list>(),
8usize,
concat!("Size of: ", stringify!(__pthread_internal_list))
);
assert_eq!(
::std::mem::align_of::<__pthread_internal_list>(),
4usize,
concat!("Alignment of ", stringify!(__pthread_internal_list))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__prev) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_list),
"::",
stringify!(__prev)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_list),
"::",
stringify!(__next)
)
);
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_slist {
pub __next: *mut __pthread_internal_slist,
}
#[test]
fn bindgen_test_layout___pthread_internal_slist() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_slist> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_internal_slist>(),
4usize,
concat!("Size of: ", stringify!(__pthread_internal_slist))
);
assert_eq!(
::std::mem::align_of::<__pthread_internal_slist>(),
4usize,
concat!("Alignment of ", stringify!(__pthread_internal_slist))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_slist),
"::",
stringify!(__next)
)
);
}
pub type __pthread_slist_t = __pthread_internal_slist;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_mutex_s {
pub __lock: ::std::os::raw::c_int,
pub __count: ::std::os::raw::c_uint,
pub __owner: ::std::os::raw::c_int,
pub __kind: ::std::os::raw::c_int,
pub __nusers: ::std::os::raw::c_uint,
pub __bindgen_anon_1: __pthread_mutex_s__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __pthread_mutex_s__bindgen_ty_1 {
pub __elision_data: __pthread_mutex_s__bindgen_ty_1__bindgen_ty_1,
pub __list: __pthread_slist_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s__bindgen_ty_1__bindgen_ty_1 {
pub __espins: ::std::os::raw::c_short,
pub __eelision: ::std::os::raw::c_short,
}
#[test]
fn bindgen_test_layout___pthread_mutex_s__bindgen_ty_1__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_mutex_s__bindgen_ty_1__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_mutex_s__bindgen_ty_1__bindgen_ty_1>(),
4usize,
concat!(
"Size of: ",
stringify!(__pthread_mutex_s__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<__pthread_mutex_s__bindgen_ty_1__bindgen_ty_1>(),
2usize,
concat!(
"Alignment of ",
stringify!(__pthread_mutex_s__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__espins) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(__espins)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__eelision) as usize - ptr as usize },
2usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(__eelision)
)
);
}
#[test]
fn bindgen_test_layout___pthread_mutex_s__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_mutex_s__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_mutex_s__bindgen_ty_1>(),
4usize,
concat!("Size of: ", stringify!(__pthread_mutex_s__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__pthread_mutex_s__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(__pthread_mutex_s__bindgen_ty_1))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__elision_data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s__bindgen_ty_1),
"::",
stringify!(__elision_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__list) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s__bindgen_ty_1),
"::",
stringify!(__list)
)
);
}
#[test]
fn bindgen_test_layout___pthread_mutex_s() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_mutex_s> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_mutex_s>(),
24usize,
concat!("Size of: ", stringify!(__pthread_mutex_s))
);
assert_eq!(
::std::mem::align_of::<__pthread_mutex_s>(),
4usize,
concat!("Alignment of ", stringify!(__pthread_mutex_s))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__lock) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__lock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__owner) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__owner)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__kind) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__kind)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__nusers) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__nusers)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_rwlock_arch_t {
pub __readers: ::std::os::raw::c_uint,
pub __writers: ::std::os::raw::c_uint,
pub __wrphase_futex: ::std::os::raw::c_uint,
pub __writers_futex: ::std::os::raw::c_uint,
pub __pad3: ::std::os::raw::c_uint,
pub __pad4: ::std::os::raw::c_uint,
pub __flags: ::std::os::raw::c_uchar,
pub __shared: ::std::os::raw::c_uchar,
pub __rwelision: ::std::os::raw::c_schar,
pub __pad2: ::std::os::raw::c_uchar,
pub __cur_writer: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___pthread_rwlock_arch_t() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_rwlock_arch_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_rwlock_arch_t>(),
32usize,
concat!("Size of: ", stringify!(__pthread_rwlock_arch_t))
);
assert_eq!(
::std::mem::align_of::<__pthread_rwlock_arch_t>(),
4usize,
concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__readers) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__readers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__writers) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__writers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wrphase_futex) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__wrphase_futex)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__writers_futex) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__writers_futex)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad3) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad3)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad4) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad4)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__flags) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__shared) as usize - ptr as usize },
25usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__shared)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__rwelision) as usize - ptr as usize },
26usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__rwelision)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad2) as usize - ptr as usize },
27usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__cur_writer) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__cur_writer)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
pub __wseq: __atomic_wide_counter,
pub __g1_start: __atomic_wide_counter,
pub __g_refs: [::std::os::raw::c_uint; 2usize],
pub __g_size: [::std::os::raw::c_uint; 2usize],
pub __g1_orig_size: ::std::os::raw::c_uint,
pub __wrefs: ::std::os::raw::c_uint,
pub __g_signals: [::std::os::raw::c_uint; 2usize],
}
#[test]
fn bindgen_test_layout___pthread_cond_s() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_cond_s> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_cond_s>(),
48usize,
concat!("Size of: ", stringify!(__pthread_cond_s))
);
assert_eq!(
::std::mem::align_of::<__pthread_cond_s>(),
4usize,
concat!("Alignment of ", stringify!(__pthread_cond_s))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wseq) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__wseq)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g1_start) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g1_start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g_refs) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g_refs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g_size) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g1_orig_size) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g1_orig_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wrefs) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__wrefs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g_signals) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g_signals)
)
);
}
pub type __tss_t = ::std::os::raw::c_uint;
pub type __thrd_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __once_flag {
pub __data: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout___once_flag() {
const UNINIT: ::std::mem::MaybeUninit<__once_flag> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__once_flag>(),
4usize,
concat!("Size of: ", stringify!(__once_flag))
);
assert_eq!(
::std::mem::align_of::<__once_flag>(),
4usize,
concat!("Alignment of ", stringify!(__once_flag))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__once_flag),
"::",
stringify!(__data)
)
);
}
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutexattr_t {
pub __size: [::std::os::raw::c_char; 4usize],
pub __align: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pthread_mutexattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_mutexattr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_mutexattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_mutexattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_mutexattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_mutexattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutexattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutexattr_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_condattr_t {
pub __size: [::std::os::raw::c_char; 4usize],
pub __align: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pthread_condattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_condattr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_condattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_condattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_condattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_condattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_condattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_condattr_t),
"::",
stringify!(__align)
)
);
}
pub type pthread_key_t = ::std::os::raw::c_uint;
pub type pthread_once_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
pub __size: [::std::os::raw::c_char; 36usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_attr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_attr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_attr_t>(),
36usize,
concat!("Size of: ", stringify!(pthread_attr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_attr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_attr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_attr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_attr_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
pub __data: __pthread_mutex_s,
pub __size: [::std::os::raw::c_char; 24usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_mutex_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_mutex_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_mutex_t>(),
24usize,
concat!("Size of: ", stringify!(pthread_mutex_t))
);
assert_eq!(
::std::mem::align_of::<pthread_mutex_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_mutex_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
pub __data: __pthread_cond_s,
pub __size: [::std::os::raw::c_char; 48usize],
pub __align: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout_pthread_cond_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_cond_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_cond_t>(),
48usize,
concat!("Size of: ", stringify!(pthread_cond_t))
);
assert_eq!(
::std::mem::align_of::<pthread_cond_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_cond_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
pub __data: __pthread_rwlock_arch_t,
pub __size: [::std::os::raw::c_char; 32usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_rwlock_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_rwlock_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_rwlock_t>(),
32usize,
concat!("Size of: ", stringify!(pthread_rwlock_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlock_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_rwlock_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
pub __size: [::std::os::raw::c_char; 8usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_rwlockattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_rwlockattr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Size of: ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlockattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlockattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlockattr_t),
"::",
stringify!(__align)
)
);
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
pub __size: [::std::os::raw::c_char; 20usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_barrier_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_barrier_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_barrier_t>(),
20usize,
concat!("Size of: ", stringify!(pthread_barrier_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrier_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_barrier_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrier_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrier_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
pub __size: [::std::os::raw::c_char; 4usize],
pub __align: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pthread_barrierattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_barrierattr_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_barrierattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrierattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrierattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrierattr_t),
"::",
stringify!(__align)
)
);
}
extern "C" {
pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn srandom(__seed: ::std::os::raw::c_uint);
}
extern "C" {
pub fn initstate(
__seed: ::std::os::raw::c_uint,
__statebuf: *mut ::std::os::raw::c_char,
__statelen: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct random_data {
pub fptr: *mut i32,
pub rptr: *mut i32,
pub state: *mut i32,
pub rand_type: ::std::os::raw::c_int,
pub rand_deg: ::std::os::raw::c_int,
pub rand_sep: ::std::os::raw::c_int,
pub end_ptr: *mut i32,
}
#[test]
fn bindgen_test_layout_random_data() {
const UNINIT: ::std::mem::MaybeUninit<random_data> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<random_data>(),
28usize,
concat!("Size of: ", stringify!(random_data))
);
assert_eq!(
::std::mem::align_of::<random_data>(),
4usize,
concat!("Alignment of ", stringify!(random_data))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fptr) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(fptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rptr) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_type) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_deg) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_deg)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_sep) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_sep)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_ptr) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(end_ptr)
)
);
}
extern "C" {
pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srandom_r(
__seed: ::std::os::raw::c_uint,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn initstate_r(
__seed: ::std::os::raw::c_uint,
__statebuf: *mut ::std::os::raw::c_char,
__statelen: usize,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setstate_r(
__statebuf: *mut ::std::os::raw::c_char,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand(__seed: ::std::os::raw::c_uint);
}
extern "C" {
pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn drand48() -> f64;
}
extern "C" {
pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn srand48(__seedval: ::std::os::raw::c_long);
}
extern "C" {
pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
pub fn lcong48(__param: *mut ::std::os::raw::c_ushort);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drand48_data {
pub __x: [::std::os::raw::c_ushort; 3usize],
pub __old_x: [::std::os::raw::c_ushort; 3usize],
pub __c: ::std::os::raw::c_ushort,
pub __init: ::std::os::raw::c_ushort,
pub __a: ::std::os::raw::c_ulonglong,
}
#[test]
fn bindgen_test_layout_drand48_data() {
const UNINIT: ::std::mem::MaybeUninit<drand48_data> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<drand48_data>(),
24usize,
concat!("Size of: ", stringify!(drand48_data))
);
assert_eq!(
::std::mem::align_of::<drand48_data>(),
4usize,
concat!("Alignment of ", stringify!(drand48_data))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__x) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__old_x) as usize - ptr as usize },
6usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__old_x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__c) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__c)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__init) as usize - ptr as usize },
14usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__a) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__a)
)
);
}
extern "C" {
pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn erand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lrand48_r(
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nrand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mrand48_r(
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn jrand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand48_r(
__seedval: ::std::os::raw::c_long,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn seed48_r(
__seed16v: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcong48_r(
__param: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn malloc(__size: ::std::os::raw::c_uint) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn calloc(
__nmemb: ::std::os::raw::c_uint,
__size: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn realloc(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn free(__ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn reallocarray(
__ptr: *mut ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn alloca(__size: ::std::os::raw::c_uint) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut ::std::os::raw::c_void,
__alignment: usize,
__size: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn aligned_alloc(
__alignment: ::std::os::raw::c_uint,
__size: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn abort() -> !;
}
extern "C" {
pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn at_quick_exit(
__func: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn on_exit(
__func: ::std::option::Option<
unsafe extern "C" fn(
__status: ::std::os::raw::c_int,
__arg: *mut ::std::os::raw::c_void,
),
>,
__arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn quick_exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn _Exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setenv(
__name: *const ::std::os::raw::c_char,
__value: *const ::std::os::raw::c_char,
__replace: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clearenv() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkstemps(
__template: *mut ::std::os::raw::c_char,
__suffixlen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn realpath(
__name: *const ::std::os::raw::c_char,
__resolved: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
pub type __compar_fn_t = ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn bsearch(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn qsort(
__base: *mut ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
);
}
extern "C" {
pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
pub fn lldiv(
__numer: ::std::os::raw::c_longlong,
__denom: ::std::os::raw::c_longlong,
) -> lldiv_t;
}
extern "C" {
pub fn ecvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn gcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qecvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qfcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qgcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ecvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fcvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn qecvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn qfcvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbtowc(
__pwc: *mut wchar_t,
__s: *const ::std::os::raw::c_char,
__n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getsubopt(
__optionp: *mut *mut ::std::os::raw::c_char,
__tokens: *const *mut ::std::os::raw::c_char,
__valuep: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn memcpy(
__dest: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memmove(
__dest: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memccpy(
__dest: *mut ::std::os::raw::c_void,
__src: *const ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memset(
__s: *mut ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn memcmp(
__s1: *const ::std::os::raw::c_void,
__s2: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __memcmpeq(
__s1: *const ::std::os::raw::c_void,
__s2: *const ::std::os::raw::c_void,
__n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn memchr(
__s: *const ::std::os::raw::c_void,
__c: ::std::os::raw::c_int,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn strcpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strncpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strcat(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strncat(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strcmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strncmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcoll(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strxfrm(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn strcoll_l(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__l: locale_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strxfrm_l(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: usize,
__l: locale_t,
) -> usize;
}
extern "C" {
pub fn strdup(__s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strndup(
__string: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strchr(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strrchr(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strcspn(
__s: *const ::std::os::raw::c_char,
__reject: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn strspn(
__s: *const ::std::os::raw::c_char,
__accept: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn strpbrk(
__s: *const ::std::os::raw::c_char,
__accept: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strstr(
__haystack: *const ::std::os::raw::c_char,
__needle: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strtok(
__s: *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn __strtok_r(
__s: *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
__save_ptr: *mut *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strtok_r(
__s: *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
__save_ptr: *mut *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strlen(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn strnlen(__string: *const ::std::os::raw::c_char, __maxlen: usize) -> usize;
}
extern "C" {
pub fn strerror(__errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
#[link_name = "\u{1}__xpg_strerror_r"]
pub fn strerror_r(
__errnum: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__buflen: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strerror_l(
__errnum: ::std::os::raw::c_int,
__l: locale_t,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn bcmp(
__s1: *const ::std::os::raw::c_void,
__s2: *const ::std::os::raw::c_void,
__n: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn bcopy(
__src: *const ::std::os::raw::c_void,
__dest: *mut ::std::os::raw::c_void,
__n: usize,
);
}
extern "C" {
pub fn bzero(__s: *mut ::std::os::raw::c_void, __n: ::std::os::raw::c_uint);
}
extern "C" {
pub fn index(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn rindex(
__s: *const ::std::os::raw::c_char,
__c: ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ffs(__i: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ffsl(__l: ::std::os::raw::c_long) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ffsll(__ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcasecmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strncasecmp(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strcasecmp_l(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__loc: locale_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn strncasecmp_l(
__s1: *const ::std::os::raw::c_char,
__s2: *const ::std::os::raw::c_char,
__n: usize,
__loc: locale_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn explicit_bzero(__s: *mut ::std::os::raw::c_void, __n: usize);
}
extern "C" {
pub fn strsep(
__stringp: *mut *mut ::std::os::raw::c_char,
__delim: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn strsignal(__sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn __stpcpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn stpcpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn __stpncpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn stpncpy(
__dest: *mut ::std::os::raw::c_char,
__src: *const ::std::os::raw::c_char,
__n: ::std::os::raw::c_uint,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_get_version() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn ped_malloc(size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn ped_calloc(size: usize) -> *mut ::std::os::raw::c_void;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __locale_data {
pub _address: u8,
}
pub type __builtin_va_list = *mut ::std::os::raw::c_char;