pub const _MALLOC_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 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __TIMESIZE: u32 = 64;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_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 _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 __GNUC_VA_LIST: u32 = 1;
pub const _BITS_TYPES_H: u32 = 1;
pub const _BITS_TYPESIZES_H: u32 = 1;
pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
pub const __INO_T_MATCHES_INO64_T: u32 = 1;
pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
pub const __STATFS_MATCHES_STATFS64: u32 = 1;
pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1;
pub const __FD_SETSIZE: u32 = 1024;
pub const _BITS_TIME64_H: u32 = 1;
pub const _____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; 5] = 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 M_MXFAST: u32 = 1;
pub const M_NLBLKS: u32 = 2;
pub const M_GRAIN: u32 = 3;
pub const M_KEEP: u32 = 4;
pub const M_TRIM_THRESHOLD: i32 = -1;
pub const M_TOP_PAD: i32 = -2;
pub const M_MMAP_THRESHOLD: i32 = -3;
pub const M_MMAP_MAX: i32 = -4;
pub const M_CHECK_ACTION: i32 = -5;
pub const M_PERTURB: i32 = -6;
pub const M_ARENA_TEST: i32 = -7;
pub const M_ARENA_MAX: i32 = -8;
pub const _SEMAPHORE_H: u32 = 1;
pub const _SYS_TYPES_H: u32 = 1;
pub const __clock_t_defined: u32 = 1;
pub const __clockid_t_defined: u32 = 1;
pub const __time_t_defined: u32 = 1;
pub const __timer_t_defined: u32 = 1;
pub const _BITS_STDINT_INTN_H: u32 = 1;
pub const __BIT_TYPES_DEFINED__: u32 = 1;
pub const _ENDIAN_H: u32 = 1;
pub const _BITS_ENDIAN_H: u32 = 1;
pub const __LITTLE_ENDIAN: u32 = 1234;
pub const __BIG_ENDIAN: u32 = 4321;
pub const __PDP_ENDIAN: u32 = 3412;
pub const _BITS_ENDIANNESS_H: u32 = 1;
pub const __BYTE_ORDER: u32 = 1234;
pub const __FLOAT_WORD_ORDER: u32 = 1234;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const BYTE_ORDER: u32 = 1234;
pub const _BITS_BYTESWAP_H: u32 = 1;
pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
pub const _SYS_SELECT_H: u32 = 1;
pub const __sigset_t_defined: u32 = 1;
pub const __timeval_defined: u32 = 1;
pub const _STRUCT_TIMESPEC: u32 = 1;
pub const FD_SETSIZE: u32 = 1024;
pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
pub const _THREAD_SHARED_TYPES_H: u32 = 1;
pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1;
pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
pub const __have_pthread_attr_t: u32 = 1;
pub const __SIZEOF_SEM_T: u32 = 32;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub const _STDINT_H: u32 = 1;
pub const _BITS_WCHAR_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: i64 = -9223372036854775808;
pub const INT_FAST32_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u64 = 9223372036854775807;
pub const INT_FAST32_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: i32 = -1;
pub const UINT_FAST32_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 4294967295;
pub const _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 _ALLOCA_H: u32 = 1;
pub const LXC_ATTACH_DETECT_PERSONALITY: i32 = -1;
pub const LXC_CLONE_KEEPNAME: u32 = 1;
pub const LXC_CLONE_KEEPMACADDR: u32 = 2;
pub const LXC_CLONE_SNAPSHOT: u32 = 4;
pub const LXC_CLONE_KEEPBDEVTYPE: u32 = 8;
pub const LXC_CLONE_MAYBE_SNAPSHOT: u32 = 16;
pub const LXC_CLONE_MAXFLAGS: u32 = 32;
pub const LXC_CLONE_ALLOW_RUNNING: u32 = 64;
pub const LXC_CREATE_QUIET: u32 = 1;
pub const LXC_CREATE_MAXFLAGS: u32 = 2;
pub const LXC_MOUNT_API_V1: u32 = 1;
pub const FEATURE_MEM_TRACK: u32 = 1;
pub const FEATURE_LAZY_PAGES: u32 = 2;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
pub __bindgen_padding_0: u64,
pub __clang_max_align_nonce2: u128,
}
#[test]
fn bindgen_test_layout_max_align_t() {
const UNINIT: ::std::mem::MaybeUninit<max_align_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<max_align_t>(),
32usize,
concat!("Size of: ", stringify!(max_align_t))
);
assert_eq!(
::std::mem::align_of::<max_align_t>(),
16usize,
concat!("Alignment of ", stringify!(max_align_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce1) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(max_align_t),
"::",
stringify!(__clang_max_align_nonce1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__clang_max_align_nonce2) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(max_align_t),
"::",
stringify!(__clang_max_align_nonce2)
)
);
}
pub type va_list = __builtin_va_list;
pub type __gnuc_va_list = __builtin_va_list;
pub type __u_char = ::std::os::raw::c_uchar;
pub type __u_short = ::std::os::raw::c_ushort;
pub type __u_int = ::std::os::raw::c_uint;
pub type __u_long = ::std::os::raw::c_ulong;
pub type __int8_t = ::std::os::raw::c_schar;
pub type __uint8_t = ::std::os::raw::c_uchar;
pub type __int16_t = ::std::os::raw::c_short;
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int32_t = ::std::os::raw::c_int;
pub type __uint32_t = ::std::os::raw::c_uint;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint64_t = ::std::os::raw::c_ulong;
pub type __int_least8_t = __int8_t;
pub type __uint_least8_t = __uint8_t;
pub type __int_least16_t = __int16_t;
pub type __uint_least16_t = __uint16_t;
pub type __int_least32_t = __int32_t;
pub type __uint_least32_t = __uint32_t;
pub type __int_least64_t = __int64_t;
pub type __uint_least64_t = __uint64_t;
pub type __quad_t = ::std::os::raw::c_long;
pub type __u_quad_t = ::std::os::raw::c_ulong;
pub type __intmax_t = ::std::os::raw::c_long;
pub type __uintmax_t = ::std::os::raw::c_ulong;
pub type __dev_t = ::std::os::raw::c_ulong;
pub type __uid_t = ::std::os::raw::c_uint;
pub type __gid_t = ::std::os::raw::c_uint;
pub type __ino_t = ::std::os::raw::c_ulong;
pub type __ino64_t = ::std::os::raw::c_ulong;
pub type __mode_t = ::std::os::raw::c_uint;
pub type __nlink_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type __pid_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __fsid_t {
pub __val: [::std::os::raw::c_int; 2usize],
}
#[test]
fn bindgen_test_layout___fsid_t() {
const UNINIT: ::std::mem::MaybeUninit<__fsid_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__fsid_t>(),
8usize,
concat!("Size of: ", stringify!(__fsid_t))
);
assert_eq!(
::std::mem::align_of::<__fsid_t>(),
4usize,
concat!("Alignment of ", stringify!(__fsid_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__fsid_t),
"::",
stringify!(__val)
)
);
}
pub type __clock_t = ::std::os::raw::c_long;
pub type __rlim_t = ::std::os::raw::c_ulong;
pub type __rlim64_t = ::std::os::raw::c_ulong;
pub type __id_t = ::std::os::raw::c_uint;
pub type __time_t = ::std::os::raw::c_long;
pub type __useconds_t = ::std::os::raw::c_uint;
pub type __suseconds_t = ::std::os::raw::c_long;
pub type __suseconds64_t = ::std::os::raw::c_long;
pub type __daddr_t = ::std::os::raw::c_int;
pub type __key_t = ::std::os::raw::c_int;
pub type __clockid_t = ::std::os::raw::c_int;
pub type __timer_t = *mut ::std::os::raw::c_void;
pub type __blksize_t = ::std::os::raw::c_long;
pub type __blkcnt_t = ::std::os::raw::c_long;
pub type __blkcnt64_t = ::std::os::raw::c_long;
pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
pub type __fsword_t = ::std::os::raw::c_long;
pub type __ssize_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
pub type __loff_t = __off64_t;
pub type __caddr_t = *mut ::std::os::raw::c_char;
pub type __intptr_t = ::std::os::raw::c_long;
pub type __socklen_t = ::std::os::raw::c_uint;
pub type __sig_atomic_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __mbstate_t {
pub __count: ::std::os::raw::c_int,
pub __value: __mbstate_t__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t__bindgen_ty_1 {
pub __wch: ::std::os::raw::c_uint,
pub __wchb: [::std::os::raw::c_char; 4usize],
}
#[test]
fn bindgen_test_layout___mbstate_t__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<__mbstate_t__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__mbstate_t__bindgen_ty_1>(),
4usize,
concat!("Size of: ", stringify!(__mbstate_t__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__mbstate_t__bindgen_ty_1>(),
4usize,
concat!("Alignment of ", stringify!(__mbstate_t__bindgen_ty_1))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wch) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t__bindgen_ty_1),
"::",
stringify!(__wch)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wchb) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t__bindgen_ty_1),
"::",
stringify!(__wchb)
)
);
}
#[test]
fn bindgen_test_layout___mbstate_t() {
const UNINIT: ::std::mem::MaybeUninit<__mbstate_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__mbstate_t>(),
8usize,
concat!("Size of: ", stringify!(__mbstate_t))
);
assert_eq!(
::std::mem::align_of::<__mbstate_t>(),
4usize,
concat!("Alignment of ", stringify!(__mbstate_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t),
"::",
stringify!(__count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__mbstate_t),
"::",
stringify!(__value)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos_t {
pub __pos: __off_t,
pub __state: __mbstate_t,
}
#[test]
fn bindgen_test_layout__G_fpos_t() {
const UNINIT: ::std::mem::MaybeUninit<_G_fpos_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_G_fpos_t>(),
16usize,
concat!("Size of: ", stringify!(_G_fpos_t))
);
assert_eq!(
::std::mem::align_of::<_G_fpos_t>(),
8usize,
concat!("Alignment of ", stringify!(_G_fpos_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos_t),
"::",
stringify!(__pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos_t),
"::",
stringify!(__state)
)
);
}
pub type __fpos_t = _G_fpos_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct _G_fpos64_t {
pub __pos: __off64_t,
pub __state: __mbstate_t,
}
#[test]
fn bindgen_test_layout__G_fpos64_t() {
const UNINIT: ::std::mem::MaybeUninit<_G_fpos64_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_G_fpos64_t>(),
16usize,
concat!("Size of: ", stringify!(_G_fpos64_t))
);
assert_eq!(
::std::mem::align_of::<_G_fpos64_t>(),
8usize,
concat!("Alignment of ", stringify!(_G_fpos64_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pos) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos64_t),
"::",
stringify!(__pos)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__state) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_G_fpos64_t),
"::",
stringify!(__state)
)
);
}
pub type __fpos64_t = _G_fpos64_t;
pub type __FILE = _IO_FILE;
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
_unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
pub _flags: ::std::os::raw::c_int,
pub _IO_read_ptr: *mut ::std::os::raw::c_char,
pub _IO_read_end: *mut ::std::os::raw::c_char,
pub _IO_read_base: *mut ::std::os::raw::c_char,
pub _IO_write_base: *mut ::std::os::raw::c_char,
pub _IO_write_ptr: *mut ::std::os::raw::c_char,
pub _IO_write_end: *mut ::std::os::raw::c_char,
pub _IO_buf_base: *mut ::std::os::raw::c_char,
pub _IO_buf_end: *mut ::std::os::raw::c_char,
pub _IO_save_base: *mut ::std::os::raw::c_char,
pub _IO_backup_base: *mut ::std::os::raw::c_char,
pub _IO_save_end: *mut ::std::os::raw::c_char,
pub _markers: *mut _IO_marker,
pub _chain: *mut _IO_FILE,
pub _fileno: ::std::os::raw::c_int,
pub _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; 20usize],
}
#[test]
fn bindgen_test_layout__IO_FILE() {
const UNINIT: ::std::mem::MaybeUninit<_IO_FILE> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_IO_FILE>(),
216usize,
concat!("Size of: ", stringify!(_IO_FILE))
);
assert_eq!(
::std::mem::align_of::<_IO_FILE>(),
8usize,
concat!("Alignment of ", stringify!(_IO_FILE))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._flags) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_ptr) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_end) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_read_base) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_base) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_ptr) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_write_end) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_base) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_buf_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_buf_end) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_buf_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_base) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_save_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_backup_base) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_backup_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._IO_save_end) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_save_end)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._markers) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_markers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._chain) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_chain)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._fileno) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_fileno)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._flags2) as usize - ptr as usize },
116usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_flags2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._old_offset) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_old_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._cur_column) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_cur_column)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._vtable_offset) as usize - ptr as usize },
130usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_vtable_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._shortbuf) as usize - ptr as usize },
131usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_shortbuf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._lock) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_lock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._offset) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._codecvt) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_codecvt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._wide_data) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_wide_data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._freeres_list) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_freeres_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._freeres_buf) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_freeres_buf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad5) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(__pad5)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._mode) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_mode)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._unused2) as usize - ptr as usize },
196usize,
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: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vprintf(
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsprintf(
__s: *mut ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn snprintf(
__s: *mut ::std::os::raw::c_char,
__maxlen: ::std::os::raw::c_ulong,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsnprintf(
__s: *mut ::std::os::raw::c_char,
__maxlen: ::std::os::raw::c_ulong,
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vdprintf(
__fd: ::std::os::raw::c_int,
__fmt: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn dprintf(
__fd: ::std::os::raw::c_int,
__fmt: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fscanf(
__stream: *mut FILE,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scanf(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sscanf(
__s: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
pub type _Float32 = f32;
pub type _Float64 = f64;
pub type _Float32x = f64;
pub type _Float64x = u128;
extern "C" {
#[link_name = "\u{1}__isoc99_fscanf"]
pub fn fscanf1(
__stream: *mut FILE,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_scanf"]
pub fn scanf1(__format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_sscanf"]
pub fn sscanf1(
__s: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vfscanf(
__s: *mut FILE,
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vscanf(
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsscanf(
__s: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vfscanf"]
pub fn vfscanf1(
__s: *mut FILE,
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vscanf"]
pub fn vscanf1(
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
#[link_name = "\u{1}__isoc99_vsscanf"]
pub fn vsscanf1(
__s: *const ::std::os::raw::c_char,
__format: *const ::std::os::raw::c_char,
__arg: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetc(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getc(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getchar() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getchar_unlocked() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetc_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fputc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putchar(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fputc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn putc_unlocked(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putchar_unlocked(__c: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getw(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putw(__w: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgets(
__s: *mut ::std::os::raw::c_char,
__n: ::std::os::raw::c_int,
__stream: *mut FILE,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn __getdelim(
__lineptr: *mut *mut ::std::os::raw::c_char,
__n: *mut usize,
__delimiter: ::std::os::raw::c_int,
__stream: *mut FILE,
) -> __ssize_t;
}
extern "C" {
pub fn getdelim(
__lineptr: *mut *mut ::std::os::raw::c_char,
__n: *mut usize,
__delimiter: ::std::os::raw::c_int,
__stream: *mut FILE,
) -> __ssize_t;
}
extern "C" {
pub fn getline(
__lineptr: *mut *mut ::std::os::raw::c_char,
__n: *mut usize,
__stream: *mut FILE,
) -> __ssize_t;
}
extern "C" {
pub fn fputs(__s: *const ::std::os::raw::c_char, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn puts(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ungetc(__c: ::std::os::raw::c_int, __stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fread(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
__n: ::std::os::raw::c_ulong,
__stream: *mut FILE,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn fwrite(
__ptr: *const ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
__n: ::std::os::raw::c_ulong,
__s: *mut FILE,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn fread_unlocked(
__ptr: *mut ::std::os::raw::c_void,
__size: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fwrite_unlocked(
__ptr: *const ::std::os::raw::c_void,
__size: usize,
__n: usize,
__stream: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fseek(
__stream: *mut FILE,
__off: ::std::os::raw::c_long,
__whence: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftell(__stream: *mut FILE) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn rewind(__stream: *mut FILE);
}
extern "C" {
pub fn fseeko(
__stream: *mut FILE,
__off: __off_t,
__whence: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftello(__stream: *mut FILE) -> __off_t;
}
extern "C" {
pub fn fgetpos(__stream: *mut FILE, __pos: *mut fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fsetpos(__stream: *mut FILE, __pos: *const fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clearerr(__stream: *mut FILE);
}
extern "C" {
pub fn feof(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ferror(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clearerr_unlocked(__stream: *mut FILE);
}
extern "C" {
pub fn feof_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ferror_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn perror(__s: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn fileno(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fileno_unlocked(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pclose(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn popen(
__command: *const ::std::os::raw::c_char,
__modes: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn ctermid(__s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn flockfile(__stream: *mut FILE);
}
extern "C" {
pub fn ftrylockfile(__stream: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn funlockfile(__stream: *mut FILE);
}
extern "C" {
pub fn __uflow(arg1: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __overflow(arg1: *mut FILE, arg2: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn malloc(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn calloc(
__nmemb: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn realloc(
__ptr: *mut ::std::os::raw::c_void,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn reallocarray(
__ptr: *mut ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn free(__ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn memalign(
__alignment: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn valloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn pvalloc(__size: usize) -> *mut ::std::os::raw::c_void;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mallinfo {
pub arena: ::std::os::raw::c_int,
pub ordblks: ::std::os::raw::c_int,
pub smblks: ::std::os::raw::c_int,
pub hblks: ::std::os::raw::c_int,
pub hblkhd: ::std::os::raw::c_int,
pub usmblks: ::std::os::raw::c_int,
pub fsmblks: ::std::os::raw::c_int,
pub uordblks: ::std::os::raw::c_int,
pub fordblks: ::std::os::raw::c_int,
pub keepcost: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_mallinfo() {
const UNINIT: ::std::mem::MaybeUninit<mallinfo> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<mallinfo>(),
40usize,
concat!("Size of: ", stringify!(mallinfo))
);
assert_eq!(
::std::mem::align_of::<mallinfo>(),
4usize,
concat!("Alignment of ", stringify!(mallinfo))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(arena)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(ordblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(smblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(hblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(hblkhd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(usmblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(fsmblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(uordblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(fordblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(mallinfo),
"::",
stringify!(keepcost)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct mallinfo2 {
pub arena: usize,
pub ordblks: usize,
pub smblks: usize,
pub hblks: usize,
pub hblkhd: usize,
pub usmblks: usize,
pub fsmblks: usize,
pub uordblks: usize,
pub fordblks: usize,
pub keepcost: usize,
}
#[test]
fn bindgen_test_layout_mallinfo2() {
const UNINIT: ::std::mem::MaybeUninit<mallinfo2> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<mallinfo2>(),
80usize,
concat!("Size of: ", stringify!(mallinfo2))
);
assert_eq!(
::std::mem::align_of::<mallinfo2>(),
8usize,
concat!("Alignment of ", stringify!(mallinfo2))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).arena) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(arena)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ordblks) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(ordblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).smblks) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(smblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hblks) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(hblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).hblkhd) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(hblkhd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).usmblks) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(usmblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fsmblks) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(fsmblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uordblks) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(uordblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fordblks) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(fordblks)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).keepcost) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(mallinfo2),
"::",
stringify!(keepcost)
)
);
}
extern "C" {
pub fn mallinfo() -> mallinfo;
}
extern "C" {
pub fn mallinfo2() -> mallinfo2;
}
extern "C" {
pub fn mallopt(
__param: ::std::os::raw::c_int,
__val: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn malloc_trim(__pad: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn malloc_usable_size(__ptr: *mut ::std::os::raw::c_void) -> usize;
}
extern "C" {
pub fn malloc_stats();
}
extern "C" {
pub fn malloc_info(__options: ::std::os::raw::c_int, __fp: *mut FILE) -> ::std::os::raw::c_int;
}
pub type u_char = __u_char;
pub type u_short = __u_short;
pub type u_int = __u_int;
pub type u_long = __u_long;
pub type quad_t = __quad_t;
pub type u_quad_t = __u_quad_t;
pub type fsid_t = __fsid_t;
pub type loff_t = __loff_t;
pub type ino_t = __ino_t;
pub type dev_t = __dev_t;
pub type gid_t = __gid_t;
pub type mode_t = __mode_t;
pub type nlink_t = __nlink_t;
pub type uid_t = __uid_t;
pub type pid_t = __pid_t;
pub type id_t = __id_t;
pub type daddr_t = __daddr_t;
pub type caddr_t = __caddr_t;
pub type key_t = __key_t;
pub type clock_t = __clock_t;
pub type clockid_t = __clockid_t;
pub type time_t = __time_t;
pub type timer_t = __timer_t;
pub type ulong = ::std::os::raw::c_ulong;
pub type ushort = ::std::os::raw::c_ushort;
pub type uint = ::std::os::raw::c_uint;
pub type u_int8_t = __uint8_t;
pub type u_int16_t = __uint16_t;
pub type u_int32_t = __uint32_t;
pub type u_int64_t = __uint64_t;
pub type register_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sigset_t {
pub __val: [::std::os::raw::c_ulong; 16usize],
}
#[test]
fn bindgen_test_layout___sigset_t() {
const UNINIT: ::std::mem::MaybeUninit<__sigset_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__sigset_t>(),
128usize,
concat!("Size of: ", stringify!(__sigset_t))
);
assert_eq!(
::std::mem::align_of::<__sigset_t>(),
8usize,
concat!("Alignment of ", stringify!(__sigset_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__val) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__sigset_t),
"::",
stringify!(__val)
)
);
}
pub type sigset_t = __sigset_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timeval {
pub tv_sec: __time_t,
pub tv_usec: __suseconds_t,
}
#[test]
fn bindgen_test_layout_timeval() {
const UNINIT: ::std::mem::MaybeUninit<timeval> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<timeval>(),
16usize,
concat!("Size of: ", stringify!(timeval))
);
assert_eq!(
::std::mem::align_of::<timeval>(),
8usize,
concat!("Alignment of ", stringify!(timeval))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(timeval),
"::",
stringify!(tv_sec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_usec) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(timeval),
"::",
stringify!(tv_usec)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
pub tv_sec: __time_t,
pub tv_nsec: __syscall_slong_t,
}
#[test]
fn bindgen_test_layout_timespec() {
const UNINIT: ::std::mem::MaybeUninit<timespec> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<timespec>(),
16usize,
concat!("Size of: ", stringify!(timespec))
);
assert_eq!(
::std::mem::align_of::<timespec>(),
8usize,
concat!("Alignment of ", stringify!(timespec))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_sec) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(timespec),
"::",
stringify!(tv_sec)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tv_nsec) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(timespec),
"::",
stringify!(tv_nsec)
)
);
}
pub type suseconds_t = __suseconds_t;
pub type __fd_mask = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct fd_set {
pub __fds_bits: [__fd_mask; 16usize],
}
#[test]
fn bindgen_test_layout_fd_set() {
const UNINIT: ::std::mem::MaybeUninit<fd_set> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<fd_set>(),
128usize,
concat!("Size of: ", stringify!(fd_set))
);
assert_eq!(
::std::mem::align_of::<fd_set>(),
8usize,
concat!("Alignment of ", stringify!(fd_set))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__fds_bits) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(fd_set),
"::",
stringify!(__fds_bits)
)
);
}
pub type fd_mask = __fd_mask;
extern "C" {
pub fn select(
__nfds: ::std::os::raw::c_int,
__readfds: *mut fd_set,
__writefds: *mut fd_set,
__exceptfds: *mut fd_set,
__timeout: *mut timeval,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn pselect(
__nfds: ::std::os::raw::c_int,
__readfds: *mut fd_set,
__writefds: *mut fd_set,
__exceptfds: *mut fd_set,
__timeout: *const timespec,
__sigmask: *const __sigset_t,
) -> ::std::os::raw::c_int;
}
pub type blksize_t = __blksize_t;
pub type blkcnt_t = __blkcnt_t;
pub type fsblkcnt_t = __fsblkcnt_t;
pub type fsfilcnt_t = __fsfilcnt_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __atomic_wide_counter {
pub __value64: ::std::os::raw::c_ulonglong,
pub __value32: __atomic_wide_counter__bindgen_ty_1,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __atomic_wide_counter__bindgen_ty_1 {
pub __low: ::std::os::raw::c_uint,
pub __high: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___atomic_wide_counter__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<__atomic_wide_counter__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__atomic_wide_counter__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(__atomic_wide_counter__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<__atomic_wide_counter__bindgen_ty_1>(),
4usize,
concat!(
"Alignment of ",
stringify!(__atomic_wide_counter__bindgen_ty_1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__low) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter__bindgen_ty_1),
"::",
stringify!(__low)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__high) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter__bindgen_ty_1),
"::",
stringify!(__high)
)
);
}
#[test]
fn bindgen_test_layout___atomic_wide_counter() {
const UNINIT: ::std::mem::MaybeUninit<__atomic_wide_counter> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__atomic_wide_counter>(),
8usize,
concat!("Size of: ", stringify!(__atomic_wide_counter))
);
assert_eq!(
::std::mem::align_of::<__atomic_wide_counter>(),
8usize,
concat!("Alignment of ", stringify!(__atomic_wide_counter))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value64) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter),
"::",
stringify!(__value64)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__value32) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__atomic_wide_counter),
"::",
stringify!(__value32)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_list {
pub __prev: *mut __pthread_internal_list,
pub __next: *mut __pthread_internal_list,
}
#[test]
fn bindgen_test_layout___pthread_internal_list() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_list> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_internal_list>(),
16usize,
concat!("Size of: ", stringify!(__pthread_internal_list))
);
assert_eq!(
::std::mem::align_of::<__pthread_internal_list>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_internal_list))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__prev) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_list),
"::",
stringify!(__prev)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_list),
"::",
stringify!(__next)
)
);
}
pub type __pthread_list_t = __pthread_internal_list;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_internal_slist {
pub __next: *mut __pthread_internal_slist,
}
#[test]
fn bindgen_test_layout___pthread_internal_slist() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_internal_slist> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_internal_slist>(),
8usize,
concat!("Size of: ", stringify!(__pthread_internal_slist))
);
assert_eq!(
::std::mem::align_of::<__pthread_internal_slist>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_internal_slist))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__next) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_internal_slist),
"::",
stringify!(__next)
)
);
}
pub type __pthread_slist_t = __pthread_internal_slist;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_mutex_s {
pub __lock: ::std::os::raw::c_int,
pub __count: ::std::os::raw::c_uint,
pub __owner: ::std::os::raw::c_int,
pub __nusers: ::std::os::raw::c_uint,
pub __kind: ::std::os::raw::c_int,
pub __spins: ::std::os::raw::c_short,
pub __elision: ::std::os::raw::c_short,
pub __list: __pthread_list_t,
}
#[test]
fn bindgen_test_layout___pthread_mutex_s() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_mutex_s> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_mutex_s>(),
40usize,
concat!("Size of: ", stringify!(__pthread_mutex_s))
);
assert_eq!(
::std::mem::align_of::<__pthread_mutex_s>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_mutex_s))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__lock) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__lock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__count) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__owner) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__owner)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__nusers) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__nusers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__kind) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__kind)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__spins) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__spins)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__elision) as usize - ptr as usize },
22usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__elision)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__list) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(__pthread_mutex_s),
"::",
stringify!(__list)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __pthread_rwlock_arch_t {
pub __readers: ::std::os::raw::c_uint,
pub __writers: ::std::os::raw::c_uint,
pub __wrphase_futex: ::std::os::raw::c_uint,
pub __writers_futex: ::std::os::raw::c_uint,
pub __pad3: ::std::os::raw::c_uint,
pub __pad4: ::std::os::raw::c_uint,
pub __cur_writer: ::std::os::raw::c_int,
pub __shared: ::std::os::raw::c_int,
pub __rwelision: ::std::os::raw::c_schar,
pub __pad1: [::std::os::raw::c_uchar; 7usize],
pub __pad2: ::std::os::raw::c_ulong,
pub __flags: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout___pthread_rwlock_arch_t() {
const UNINIT: ::std::mem::MaybeUninit<__pthread_rwlock_arch_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__pthread_rwlock_arch_t>(),
56usize,
concat!("Size of: ", stringify!(__pthread_rwlock_arch_t))
);
assert_eq!(
::std::mem::align_of::<__pthread_rwlock_arch_t>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__readers) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__readers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__writers) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__writers)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wrphase_futex) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__wrphase_futex)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__writers_futex) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__writers_futex)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad3) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad3)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad4) as usize - ptr as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad4)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__cur_writer) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__cur_writer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__shared) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__shared)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__rwelision) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__rwelision)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad1) as usize - ptr as usize },
33usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__pad2) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__pad2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__flags) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(__pthread_rwlock_arch_t),
"::",
stringify!(__flags)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __pthread_cond_s {
pub __wseq: __atomic_wide_counter,
pub __g1_start: __atomic_wide_counter,
pub __g_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>(),
8usize,
concat!("Alignment of ", stringify!(__pthread_cond_s))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__wseq) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__wseq)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g1_start) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__pthread_cond_s),
"::",
stringify!(__g1_start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__g_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; 56usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_attr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_attr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_attr_t>(),
56usize,
concat!("Size of: ", stringify!(pthread_attr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_attr_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_attr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_attr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_attr_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_mutex_t {
pub __data: __pthread_mutex_s,
pub __size: [::std::os::raw::c_char; 40usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_mutex_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_mutex_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_mutex_t>(),
40usize,
concat!("Size of: ", stringify!(pthread_mutex_t))
);
assert_eq!(
::std::mem::align_of::<pthread_mutex_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_mutex_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_mutex_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_cond_t {
pub __data: __pthread_cond_s,
pub __size: [::std::os::raw::c_char; 48usize],
pub __align: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout_pthread_cond_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_cond_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_cond_t>(),
48usize,
concat!("Size of: ", stringify!(pthread_cond_t))
);
assert_eq!(
::std::mem::align_of::<pthread_cond_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_cond_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_cond_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlock_t {
pub __data: __pthread_rwlock_arch_t,
pub __size: [::std::os::raw::c_char; 56usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_rwlock_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_rwlock_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_rwlock_t>(),
56usize,
concat!("Size of: ", stringify!(pthread_rwlock_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlock_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_rwlock_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__data) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__data)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlock_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_rwlockattr_t {
pub __size: [::std::os::raw::c_char; 8usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_rwlockattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_rwlockattr_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Size of: ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_rwlockattr_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlockattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_rwlockattr_t),
"::",
stringify!(__align)
)
);
}
pub type pthread_spinlock_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrier_t {
pub __size: [::std::os::raw::c_char; 32usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_pthread_barrier_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_barrier_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_barrier_t>(),
32usize,
concat!("Size of: ", stringify!(pthread_barrier_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrier_t>(),
8usize,
concat!("Alignment of ", stringify!(pthread_barrier_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrier_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrier_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_barrierattr_t {
pub __size: [::std::os::raw::c_char; 4usize],
pub __align: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_pthread_barrierattr_t() {
const UNINIT: ::std::mem::MaybeUninit<pthread_barrierattr_t> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<pthread_barrierattr_t>(),
4usize,
concat!("Size of: ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
::std::mem::align_of::<pthread_barrierattr_t>(),
4usize,
concat!("Alignment of ", stringify!(pthread_barrierattr_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrierattr_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(pthread_barrierattr_t),
"::",
stringify!(__align)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union sem_t {
pub __size: [::std::os::raw::c_char; 32usize],
pub __align: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_sem_t() {
const UNINIT: ::std::mem::MaybeUninit<sem_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<sem_t>(),
32usize,
concat!("Size of: ", stringify!(sem_t))
);
assert_eq!(
::std::mem::align_of::<sem_t>(),
8usize,
concat!("Alignment of ", stringify!(sem_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(sem_t),
"::",
stringify!(__size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__align) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(sem_t),
"::",
stringify!(__align)
)
);
}
extern "C" {
pub fn sem_init(
__sem: *mut sem_t,
__pshared: ::std::os::raw::c_int,
__value: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sem_destroy(__sem: *mut sem_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sem_open(
__name: *const ::std::os::raw::c_char,
__oflag: ::std::os::raw::c_int,
...
) -> *mut sem_t;
}
extern "C" {
pub fn sem_close(__sem: *mut sem_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sem_unlink(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sem_wait(__sem: *mut sem_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sem_timedwait(__sem: *mut sem_t, __abstime: *const timespec) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sem_trywait(__sem: *mut sem_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sem_post(__sem: *mut sem_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sem_getvalue(
__sem: *mut sem_t,
__sval: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
pub type int_least8_t = __int_least8_t;
pub type int_least16_t = __int_least16_t;
pub type int_least32_t = __int_least32_t;
pub type int_least64_t = __int_least64_t;
pub type uint_least8_t = __uint_least8_t;
pub type uint_least16_t = __uint_least16_t;
pub type uint_least32_t = __uint_least32_t;
pub type uint_least64_t = __uint_least64_t;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type int_fast16_t = ::std::os::raw::c_long;
pub type int_fast32_t = ::std::os::raw::c_long;
pub type int_fast64_t = ::std::os::raw::c_long;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type uint_fast16_t = ::std::os::raw::c_ulong;
pub type uint_fast32_t = ::std::os::raw::c_ulong;
pub type uint_fast64_t = ::std::os::raw::c_ulong;
pub type intmax_t = __intmax_t;
pub type uintmax_t = __uintmax_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct div_t {
pub quot: ::std::os::raw::c_int,
pub rem: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_div_t() {
const UNINIT: ::std::mem::MaybeUninit<div_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<div_t>(),
8usize,
concat!("Size of: ", stringify!(div_t))
);
assert_eq!(
::std::mem::align_of::<div_t>(),
4usize,
concat!("Alignment of ", stringify!(div_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(div_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(div_t),
"::",
stringify!(rem)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ldiv_t {
pub quot: ::std::os::raw::c_long,
pub rem: ::std::os::raw::c_long,
}
#[test]
fn bindgen_test_layout_ldiv_t() {
const UNINIT: ::std::mem::MaybeUninit<ldiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<ldiv_t>(),
16usize,
concat!("Size of: ", stringify!(ldiv_t))
);
assert_eq!(
::std::mem::align_of::<ldiv_t>(),
8usize,
concat!("Alignment of ", stringify!(ldiv_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(ldiv_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(ldiv_t),
"::",
stringify!(rem)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lldiv_t {
pub quot: ::std::os::raw::c_longlong,
pub rem: ::std::os::raw::c_longlong,
}
#[test]
fn bindgen_test_layout_lldiv_t() {
const UNINIT: ::std::mem::MaybeUninit<lldiv_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lldiv_t>(),
16usize,
concat!("Size of: ", stringify!(lldiv_t))
);
assert_eq!(
::std::mem::align_of::<lldiv_t>(),
8usize,
concat!("Alignment of ", stringify!(lldiv_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lldiv_t),
"::",
stringify!(quot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rem) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lldiv_t),
"::",
stringify!(rem)
)
);
}
extern "C" {
pub fn __ctype_get_mb_cur_max() -> usize;
}
extern "C" {
pub fn atof(__nptr: *const ::std::os::raw::c_char) -> f64;
}
extern "C" {
pub fn atoi(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn atol(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn atoll(__nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtod(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> f64;
}
extern "C" {
pub fn strtof(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> f32;
}
extern "C" {
pub fn strtold(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
) -> u128;
}
extern "C" {
pub fn strtol(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn strtoul(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulong;
}
extern "C" {
pub fn strtoq(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtouq(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn strtoll(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn strtoull(
__nptr: *const ::std::os::raw::c_char,
__endptr: *mut *mut ::std::os::raw::c_char,
__base: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn l64a(__n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn a64l(__s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn random() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn srandom(__seed: ::std::os::raw::c_uint);
}
extern "C" {
pub fn initstate(
__seed: ::std::os::raw::c_uint,
__statebuf: *mut ::std::os::raw::c_char,
__statelen: usize,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn setstate(__statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct random_data {
pub fptr: *mut i32,
pub rptr: *mut i32,
pub state: *mut i32,
pub rand_type: ::std::os::raw::c_int,
pub rand_deg: ::std::os::raw::c_int,
pub rand_sep: ::std::os::raw::c_int,
pub end_ptr: *mut i32,
}
#[test]
fn bindgen_test_layout_random_data() {
const UNINIT: ::std::mem::MaybeUninit<random_data> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<random_data>(),
48usize,
concat!("Size of: ", stringify!(random_data))
);
assert_eq!(
::std::mem::align_of::<random_data>(),
8usize,
concat!("Alignment of ", stringify!(random_data))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fptr) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(fptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rptr) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_type) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_deg) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_deg)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rand_sep) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(rand_sep)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).end_ptr) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(random_data),
"::",
stringify!(end_ptr)
)
);
}
extern "C" {
pub fn random_r(__buf: *mut random_data, __result: *mut i32) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srandom_r(
__seed: ::std::os::raw::c_uint,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn initstate_r(
__seed: ::std::os::raw::c_uint,
__statebuf: *mut ::std::os::raw::c_char,
__statelen: usize,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setstate_r(
__statebuf: *mut ::std::os::raw::c_char,
__buf: *mut random_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rand() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand(__seed: ::std::os::raw::c_uint);
}
extern "C" {
pub fn rand_r(__seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn drand48() -> f64;
}
extern "C" {
pub fn erand48(__xsubi: *mut ::std::os::raw::c_ushort) -> f64;
}
extern "C" {
pub fn lrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn nrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn mrand48() -> ::std::os::raw::c_long;
}
extern "C" {
pub fn jrand48(__xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn srand48(__seedval: ::std::os::raw::c_long);
}
extern "C" {
pub fn seed48(__seed16v: *mut ::std::os::raw::c_ushort) -> *mut ::std::os::raw::c_ushort;
}
extern "C" {
pub fn lcong48(__param: *mut ::std::os::raw::c_ushort);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct drand48_data {
pub __x: [::std::os::raw::c_ushort; 3usize],
pub __old_x: [::std::os::raw::c_ushort; 3usize],
pub __c: ::std::os::raw::c_ushort,
pub __init: ::std::os::raw::c_ushort,
pub __a: ::std::os::raw::c_ulonglong,
}
#[test]
fn bindgen_test_layout_drand48_data() {
const UNINIT: ::std::mem::MaybeUninit<drand48_data> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<drand48_data>(),
24usize,
concat!("Size of: ", stringify!(drand48_data))
);
assert_eq!(
::std::mem::align_of::<drand48_data>(),
8usize,
concat!("Alignment of ", stringify!(drand48_data))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__x) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__old_x) as usize - ptr as usize },
6usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__old_x)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__c) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__c)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__init) as usize - ptr as usize },
14usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__init)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__a) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(drand48_data),
"::",
stringify!(__a)
)
);
}
extern "C" {
pub fn drand48_r(__buffer: *mut drand48_data, __result: *mut f64) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn erand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut f64,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lrand48_r(
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn nrand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mrand48_r(
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn jrand48_r(
__xsubi: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
__result: *mut ::std::os::raw::c_long,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn srand48_r(
__seedval: ::std::os::raw::c_long,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn seed48_r(
__seed16v: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lcong48_r(
__param: *mut ::std::os::raw::c_ushort,
__buffer: *mut drand48_data,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn alloca(__size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn posix_memalign(
__memptr: *mut *mut ::std::os::raw::c_void,
__alignment: usize,
__size: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn aligned_alloc(
__alignment: ::std::os::raw::c_ulong,
__size: ::std::os::raw::c_ulong,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn abort() -> !;
}
extern "C" {
pub fn atexit(__func: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn at_quick_exit(
__func: ::std::option::Option<unsafe extern "C" fn()>,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn on_exit(
__func: ::std::option::Option<
unsafe extern "C" fn(
__status: ::std::os::raw::c_int,
__arg: *mut ::std::os::raw::c_void,
),
>,
__arg: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn quick_exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn _Exit(__status: ::std::os::raw::c_int) -> !;
}
extern "C" {
pub fn getenv(__name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn putenv(__string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setenv(
__name: *const ::std::os::raw::c_char,
__value: *const ::std::os::raw::c_char,
__replace: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unsetenv(__name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn clearenv() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mktemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn mkstemp(__template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkstemps(
__template: *mut ::std::os::raw::c_char,
__suffixlen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mkdtemp(__template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn system(__command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn realpath(
__name: *const ::std::os::raw::c_char,
__resolved: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
pub type __compar_fn_t = ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn bsearch(
__key: *const ::std::os::raw::c_void,
__base: *const ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn qsort(
__base: *mut ::std::os::raw::c_void,
__nmemb: usize,
__size: usize,
__compar: __compar_fn_t,
);
}
extern "C" {
pub fn abs(__x: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn labs(__x: ::std::os::raw::c_long) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn llabs(__x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn div(__numer: ::std::os::raw::c_int, __denom: ::std::os::raw::c_int) -> div_t;
}
extern "C" {
pub fn ldiv(__numer: ::std::os::raw::c_long, __denom: ::std::os::raw::c_long) -> ldiv_t;
}
extern "C" {
pub fn lldiv(
__numer: ::std::os::raw::c_longlong,
__denom: ::std::os::raw::c_longlong,
) -> lldiv_t;
}
extern "C" {
pub fn ecvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn gcvt(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qecvt(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qfcvt(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn qgcvt(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ecvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fcvt_r(
__value: f64,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn qecvt_r(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn qfcvt_r(
__value: u128,
__ndigit: ::std::os::raw::c_int,
__decpt: *mut ::std::os::raw::c_int,
__sign: *mut ::std::os::raw::c_int,
__buf: *mut ::std::os::raw::c_char,
__len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mblen(__s: *const ::std::os::raw::c_char, __n: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbtowc(
__pwc: *mut wchar_t,
__s: *const ::std::os::raw::c_char,
__n: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wctomb(__s: *mut ::std::os::raw::c_char, __wchar: wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn mbstowcs(__pwcs: *mut wchar_t, __s: *const ::std::os::raw::c_char, __n: usize) -> usize;
}
extern "C" {
pub fn wcstombs(__s: *mut ::std::os::raw::c_char, __pwcs: *const wchar_t, __n: usize) -> usize;
}
extern "C" {
pub fn rpmatch(__response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getsubopt(
__optionp: *mut *mut ::std::os::raw::c_char,
__tokens: *const *mut ::std::os::raw::c_char,
__valuep: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getloadavg(__loadavg: *mut f64, __nelem: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
pub const lxc_attach_env_policy_t_LXC_ATTACH_KEEP_ENV: lxc_attach_env_policy_t = 0;
pub const lxc_attach_env_policy_t_LXC_ATTACH_CLEAR_ENV: lxc_attach_env_policy_t = 1;
pub type lxc_attach_env_policy_t = ::std::os::raw::c_uint;
pub const LXC_ATTACH_MOVE_TO_CGROUP: _bindgen_ty_1 = 1;
pub const LXC_ATTACH_DROP_CAPABILITIES: _bindgen_ty_1 = 2;
pub const LXC_ATTACH_SET_PERSONALITY: _bindgen_ty_1 = 4;
pub const LXC_ATTACH_LSM_EXEC: _bindgen_ty_1 = 8;
pub const LXC_ATTACH_REMOUNT_PROC_SYS: _bindgen_ty_1 = 65536;
pub const LXC_ATTACH_LSM_NOW: _bindgen_ty_1 = 131072;
pub const LXC_ATTACH_NO_NEW_PRIVS: _bindgen_ty_1 = 262144;
pub const LXC_ATTACH_TERMINAL: _bindgen_ty_1 = 524288;
pub const LXC_ATTACH_LSM_LABEL: _bindgen_ty_1 = 1048576;
pub const LXC_ATTACH_SETGROUPS: _bindgen_ty_1 = 2097152;
pub const LXC_ATTACH_DEFAULT: _bindgen_ty_1 = 65535;
pub type _bindgen_ty_1 = ::std::os::raw::c_uint;
pub type lxc_attach_exec_t = ::std::option::Option<
unsafe extern "C" fn(payload: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_groups_t {
pub size: usize,
pub list: *mut gid_t,
}
#[test]
fn bindgen_test_layout_lxc_groups_t() {
const UNINIT: ::std::mem::MaybeUninit<lxc_groups_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lxc_groups_t>(),
16usize,
concat!("Size of: ", stringify!(lxc_groups_t))
);
assert_eq!(
::std::mem::align_of::<lxc_groups_t>(),
8usize,
concat!("Alignment of ", stringify!(lxc_groups_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lxc_groups_t),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).list) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lxc_groups_t),
"::",
stringify!(list)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_attach_options_t {
pub attach_flags: ::std::os::raw::c_int,
pub namespaces: ::std::os::raw::c_int,
pub personality: ::std::os::raw::c_long,
pub initial_cwd: *mut ::std::os::raw::c_char,
pub uid: uid_t,
pub gid: gid_t,
pub env_policy: lxc_attach_env_policy_t,
pub extra_env_vars: *mut *mut ::std::os::raw::c_char,
pub extra_keep_env: *mut *mut ::std::os::raw::c_char,
pub stdin_fd: ::std::os::raw::c_int,
pub stdout_fd: ::std::os::raw::c_int,
pub stderr_fd: ::std::os::raw::c_int,
pub log_fd: ::std::os::raw::c_int,
pub lsm_label: *mut ::std::os::raw::c_char,
pub groups: lxc_groups_t,
}
#[test]
fn bindgen_test_layout_lxc_attach_options_t() {
const UNINIT: ::std::mem::MaybeUninit<lxc_attach_options_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lxc_attach_options_t>(),
96usize,
concat!("Size of: ", stringify!(lxc_attach_options_t))
);
assert_eq!(
::std::mem::align_of::<lxc_attach_options_t>(),
8usize,
concat!("Alignment of ", stringify!(lxc_attach_options_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).attach_flags) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(attach_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).namespaces) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(namespaces)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).personality) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(personality)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).initial_cwd) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(initial_cwd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).uid) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(uid)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).gid) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(gid)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).env_policy) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(env_policy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extra_env_vars) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(extra_env_vars)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).extra_keep_env) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(extra_keep_env)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stdin_fd) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(stdin_fd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stdout_fd) as usize - ptr as usize },
60usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(stdout_fd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stderr_fd) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(stderr_fd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).log_fd) as usize - ptr as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(log_fd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lsm_label) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(lsm_label)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).groups) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_options_t),
"::",
stringify!(groups)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_attach_command_t {
pub program: *mut ::std::os::raw::c_char,
pub argv: *mut *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_lxc_attach_command_t() {
const UNINIT: ::std::mem::MaybeUninit<lxc_attach_command_t> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lxc_attach_command_t>(),
16usize,
concat!("Size of: ", stringify!(lxc_attach_command_t))
);
assert_eq!(
::std::mem::align_of::<lxc_attach_command_t>(),
8usize,
concat!("Alignment of ", stringify!(lxc_attach_command_t))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).program) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_command_t),
"::",
stringify!(program)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).argv) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lxc_attach_command_t),
"::",
stringify!(argv)
)
);
}
extern "C" {
pub fn lxc_attach_run_command(payload: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lxc_attach_run_shell(payload: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_lock {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_mount {
pub version: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_lxc_mount() {
const UNINIT: ::std::mem::MaybeUninit<lxc_mount> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lxc_mount>(),
4usize,
concat!("Size of: ", stringify!(lxc_mount))
);
assert_eq!(
::std::mem::align_of::<lxc_mount>(),
4usize,
concat!("Alignment of ", stringify!(lxc_mount))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).version) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lxc_mount),
"::",
stringify!(version)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_container {
pub name: *mut ::std::os::raw::c_char,
pub configfile: *mut ::std::os::raw::c_char,
pub pidfile: *mut ::std::os::raw::c_char,
pub slock: *mut lxc_lock,
pub privlock: *mut lxc_lock,
pub numthreads: ::std::os::raw::c_int,
pub lxc_conf: *mut lxc_conf,
pub error_string: *mut ::std::os::raw::c_char,
pub error_num: ::std::os::raw::c_int,
pub daemonize: bool,
pub config_path: *mut ::std::os::raw::c_char,
pub is_defined: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub state: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container) -> *const ::std::os::raw::c_char,
>,
pub is_running: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub freeze: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub unfreeze: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub init_pid: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> pid_t>,
pub load_config: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
alt_file: *const ::std::os::raw::c_char,
) -> bool,
>,
pub start: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
useinit: ::std::os::raw::c_int,
argv: *const *mut ::std::os::raw::c_char,
) -> bool,
>,
pub startl: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container, useinit: ::std::os::raw::c_int, ...) -> bool,
>,
pub stop: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub want_daemonize:
::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container, state: bool) -> bool>,
pub want_close_all_fds:
::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container, state: bool) -> bool>,
pub config_file_name: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container) -> *mut ::std::os::raw::c_char,
>,
pub wait: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
state: *const ::std::os::raw::c_char,
timeout: ::std::os::raw::c_int,
) -> bool,
>,
pub set_config_item: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
key: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> bool,
>,
pub destroy: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub save_config: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
alt_file: *const ::std::os::raw::c_char,
) -> bool,
>,
pub create: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
t: *const ::std::os::raw::c_char,
bdevtype: *const ::std::os::raw::c_char,
specs: *mut bdev_specs,
flags: ::std::os::raw::c_int,
argv: *const *mut ::std::os::raw::c_char,
) -> bool,
>,
pub createl: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
t: *const ::std::os::raw::c_char,
bdevtype: *const ::std::os::raw::c_char,
specs: *mut bdev_specs,
flags: ::std::os::raw::c_int,
...
) -> bool,
>,
pub rename: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container, newname: *const ::std::os::raw::c_char) -> bool,
>,
pub reboot: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub shutdown: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container, timeout: ::std::os::raw::c_int) -> bool,
>,
pub clear_config: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container)>,
pub clear_config_item: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container, key: *const ::std::os::raw::c_char) -> bool,
>,
pub get_config_item: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
key: *const ::std::os::raw::c_char,
retv: *mut ::std::os::raw::c_char,
inlen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub get_running_config_item: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
key: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char,
>,
pub get_keys: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
key: *const ::std::os::raw::c_char,
retv: *mut ::std::os::raw::c_char,
inlen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub get_interfaces: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container) -> *mut *mut ::std::os::raw::c_char,
>,
pub get_ips: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
interface: *const ::std::os::raw::c_char,
family: *const ::std::os::raw::c_char,
scope: ::std::os::raw::c_int,
) -> *mut *mut ::std::os::raw::c_char,
>,
pub get_cgroup_item: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
subsys: *const ::std::os::raw::c_char,
retv: *mut ::std::os::raw::c_char,
inlen: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub set_cgroup_item: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
subsys: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> bool,
>,
pub get_config_path: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container) -> *const ::std::os::raw::c_char,
>,
pub set_config_path: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container, path: *const ::std::os::raw::c_char) -> bool,
>,
pub clone: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
newname: *const ::std::os::raw::c_char,
lxcpath: *const ::std::os::raw::c_char,
flags: ::std::os::raw::c_int,
bdevtype: *const ::std::os::raw::c_char,
bdevdata: *const ::std::os::raw::c_char,
newsize: u64,
hookargs: *mut *mut ::std::os::raw::c_char,
) -> *mut lxc_container,
>,
pub console_getfd: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
ttynum: *mut ::std::os::raw::c_int,
ptxfd: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub console: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
ttynum: ::std::os::raw::c_int,
stdinfd: ::std::os::raw::c_int,
stdoutfd: ::std::os::raw::c_int,
stderrfd: ::std::os::raw::c_int,
escape: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub attach: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
exec_function: lxc_attach_exec_t,
exec_payload: *mut ::std::os::raw::c_void,
options: *mut lxc_attach_options_t,
attached_process: *mut pid_t,
) -> ::std::os::raw::c_int,
>,
pub attach_run_wait: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
options: *mut lxc_attach_options_t,
program: *const ::std::os::raw::c_char,
argv: *const *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pub attach_run_waitl: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
options: *mut lxc_attach_options_t,
program: *const ::std::os::raw::c_char,
arg: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int,
>,
pub snapshot: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
commentfile: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pub snapshot_list: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
snapshots: *mut *mut lxc_snapshot,
) -> ::std::os::raw::c_int,
>,
pub snapshot_restore: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
snapname: *const ::std::os::raw::c_char,
newname: *const ::std::os::raw::c_char,
) -> bool,
>,
pub snapshot_destroy: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
snapname: *const ::std::os::raw::c_char,
) -> bool,
>,
pub may_control: ::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub add_device_node: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
src_path: *const ::std::os::raw::c_char,
dest_path: *const ::std::os::raw::c_char,
) -> bool,
>,
pub remove_device_node: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
src_path: *const ::std::os::raw::c_char,
dest_path: *const ::std::os::raw::c_char,
) -> bool,
>,
pub attach_interface: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
dev: *const ::std::os::raw::c_char,
dst_dev: *const ::std::os::raw::c_char,
) -> bool,
>,
pub detach_interface: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
dev: *const ::std::os::raw::c_char,
dst_dev: *const ::std::os::raw::c_char,
) -> bool,
>,
pub checkpoint: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
directory: *mut ::std::os::raw::c_char,
stop: bool,
verbose: bool,
) -> bool,
>,
pub restore: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
directory: *mut ::std::os::raw::c_char,
verbose: bool,
) -> bool,
>,
pub destroy_with_snapshots:
::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub snapshot_destroy_all:
::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> bool>,
pub migrate: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
cmd: ::std::os::raw::c_uint,
opts: *mut migrate_opts,
size: ::std::os::raw::c_uint,
) -> ::std::os::raw::c_int,
>,
pub console_log: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
log: *mut lxc_console_log,
) -> ::std::os::raw::c_int,
>,
pub reboot2: ::std::option::Option<
unsafe extern "C" fn(c: *mut lxc_container, timeout: ::std::os::raw::c_int) -> bool,
>,
pub mount: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
source: *const ::std::os::raw::c_char,
target: *const ::std::os::raw::c_char,
filesystemtype: *const ::std::os::raw::c_char,
mountflags: ::std::os::raw::c_ulong,
data: *const ::std::os::raw::c_void,
mnt: *mut lxc_mount,
) -> ::std::os::raw::c_int,
>,
pub umount: ::std::option::Option<
unsafe extern "C" fn(
c: *mut lxc_container,
target: *const ::std::os::raw::c_char,
mountflags: ::std::os::raw::c_ulong,
mnt: *mut lxc_mount,
) -> ::std::os::raw::c_int,
>,
pub seccomp_notify_fd:
::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> ::std::os::raw::c_int>,
pub seccomp_notify_fd_active:
::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> ::std::os::raw::c_int>,
pub init_pidfd:
::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> ::std::os::raw::c_int>,
pub devpts_fd:
::std::option::Option<unsafe extern "C" fn(c: *mut lxc_container) -> ::std::os::raw::c_int>,
}
#[test]
fn bindgen_test_layout_lxc_container() {
const UNINIT: ::std::mem::MaybeUninit<lxc_container> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lxc_container>(),
568usize,
concat!("Size of: ", stringify!(lxc_container))
);
assert_eq!(
::std::mem::align_of::<lxc_container>(),
8usize,
concat!("Alignment of ", stringify!(lxc_container))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).configfile) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(configfile)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pidfile) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(pidfile)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).slock) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(slock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).privlock) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(privlock)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).numthreads) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(numthreads)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lxc_conf) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(lxc_conf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).error_string) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(error_string)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).error_num) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(error_num)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).daemonize) as usize - ptr as usize },
68usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(daemonize)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).config_path) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(config_path)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).is_defined) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(is_defined)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).state) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(state)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).is_running) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(is_running)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).freeze) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(freeze)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).unfreeze) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(unfreeze)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init_pid) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(init_pid)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).load_config) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(load_config)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).start) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(start)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).startl) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(startl)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stop) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(stop)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).want_daemonize) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(want_daemonize)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).want_close_all_fds) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(want_close_all_fds)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).config_file_name) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(config_file_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wait) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(wait)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).set_config_item) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(set_config_item)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).destroy) as usize - ptr as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(destroy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).save_config) as usize - ptr as usize },
208usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(save_config)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).create) as usize - ptr as usize },
216usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(create)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).createl) as usize - ptr as usize },
224usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(createl)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rename) as usize - ptr as usize },
232usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(rename)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reboot) as usize - ptr as usize },
240usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(reboot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).shutdown) as usize - ptr as usize },
248usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(shutdown)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).clear_config) as usize - ptr as usize },
256usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(clear_config)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).clear_config_item) as usize - ptr as usize },
264usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(clear_config_item)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_config_item) as usize - ptr as usize },
272usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(get_config_item)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_running_config_item) as usize - ptr as usize },
280usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(get_running_config_item)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_keys) as usize - ptr as usize },
288usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(get_keys)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_interfaces) as usize - ptr as usize },
296usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(get_interfaces)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_ips) as usize - ptr as usize },
304usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(get_ips)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_cgroup_item) as usize - ptr as usize },
312usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(get_cgroup_item)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).set_cgroup_item) as usize - ptr as usize },
320usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(set_cgroup_item)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_config_path) as usize - ptr as usize },
328usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(get_config_path)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).set_config_path) as usize - ptr as usize },
336usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(set_config_path)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).clone) as usize - ptr as usize },
344usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(clone)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).console_getfd) as usize - ptr as usize },
352usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(console_getfd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).console) as usize - ptr as usize },
360usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(console)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).attach) as usize - ptr as usize },
368usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(attach)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).attach_run_wait) as usize - ptr as usize },
376usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(attach_run_wait)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).attach_run_waitl) as usize - ptr as usize },
384usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(attach_run_waitl)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).snapshot) as usize - ptr as usize },
392usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(snapshot)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).snapshot_list) as usize - ptr as usize },
400usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(snapshot_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).snapshot_restore) as usize - ptr as usize },
408usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(snapshot_restore)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).snapshot_destroy) as usize - ptr as usize },
416usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(snapshot_destroy)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).may_control) as usize - ptr as usize },
424usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(may_control)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).add_device_node) as usize - ptr as usize },
432usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(add_device_node)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).remove_device_node) as usize - ptr as usize },
440usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(remove_device_node)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).attach_interface) as usize - ptr as usize },
448usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(attach_interface)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).detach_interface) as usize - ptr as usize },
456usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(detach_interface)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).checkpoint) as usize - ptr as usize },
464usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(checkpoint)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).restore) as usize - ptr as usize },
472usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(restore)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).destroy_with_snapshots) as usize - ptr as usize },
480usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(destroy_with_snapshots)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).snapshot_destroy_all) as usize - ptr as usize },
488usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(snapshot_destroy_all)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).migrate) as usize - ptr as usize },
496usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(migrate)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).console_log) as usize - ptr as usize },
504usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(console_log)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reboot2) as usize - ptr as usize },
512usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(reboot2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mount) as usize - ptr as usize },
520usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(mount)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).umount) as usize - ptr as usize },
528usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(umount)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seccomp_notify_fd) as usize - ptr as usize },
536usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(seccomp_notify_fd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).seccomp_notify_fd_active) as usize - ptr as usize },
544usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(seccomp_notify_fd_active)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).init_pidfd) as usize - ptr as usize },
552usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(init_pidfd)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).devpts_fd) as usize - ptr as usize },
560usize,
concat!(
"Offset of field: ",
stringify!(lxc_container),
"::",
stringify!(devpts_fd)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_snapshot {
pub name: *mut ::std::os::raw::c_char,
pub comment_pathname: *mut ::std::os::raw::c_char,
pub timestamp: *mut ::std::os::raw::c_char,
pub lxcpath: *mut ::std::os::raw::c_char,
pub free: ::std::option::Option<unsafe extern "C" fn(s: *mut lxc_snapshot)>,
}
#[test]
fn bindgen_test_layout_lxc_snapshot() {
const UNINIT: ::std::mem::MaybeUninit<lxc_snapshot> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lxc_snapshot>(),
40usize,
concat!("Size of: ", stringify!(lxc_snapshot))
);
assert_eq!(
::std::mem::align_of::<lxc_snapshot>(),
8usize,
concat!("Alignment of ", stringify!(lxc_snapshot))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lxc_snapshot),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).comment_pathname) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lxc_snapshot),
"::",
stringify!(comment_pathname)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).timestamp) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lxc_snapshot),
"::",
stringify!(timestamp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lxcpath) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lxc_snapshot),
"::",
stringify!(lxcpath)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).free) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lxc_snapshot),
"::",
stringify!(free)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bdev_specs {
pub fstype: *mut ::std::os::raw::c_char,
pub fssize: u64,
pub zfs: bdev_specs__bindgen_ty_1,
pub lvm: bdev_specs__bindgen_ty_2,
pub dir: *mut ::std::os::raw::c_char,
pub rbd: bdev_specs__bindgen_ty_3,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bdev_specs__bindgen_ty_1 {
pub zfsroot: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_bdev_specs__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<bdev_specs__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<bdev_specs__bindgen_ty_1>(),
8usize,
concat!("Size of: ", stringify!(bdev_specs__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<bdev_specs__bindgen_ty_1>(),
8usize,
concat!("Alignment of ", stringify!(bdev_specs__bindgen_ty_1))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).zfsroot) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs__bindgen_ty_1),
"::",
stringify!(zfsroot)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bdev_specs__bindgen_ty_2 {
pub vg: *mut ::std::os::raw::c_char,
pub lv: *mut ::std::os::raw::c_char,
pub thinpool: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_bdev_specs__bindgen_ty_2() {
const UNINIT: ::std::mem::MaybeUninit<bdev_specs__bindgen_ty_2> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<bdev_specs__bindgen_ty_2>(),
24usize,
concat!("Size of: ", stringify!(bdev_specs__bindgen_ty_2))
);
assert_eq!(
::std::mem::align_of::<bdev_specs__bindgen_ty_2>(),
8usize,
concat!("Alignment of ", stringify!(bdev_specs__bindgen_ty_2))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).vg) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs__bindgen_ty_2),
"::",
stringify!(vg)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lv) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs__bindgen_ty_2),
"::",
stringify!(lv)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).thinpool) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs__bindgen_ty_2),
"::",
stringify!(thinpool)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct bdev_specs__bindgen_ty_3 {
pub rbdname: *mut ::std::os::raw::c_char,
pub rbdpool: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_bdev_specs__bindgen_ty_3() {
const UNINIT: ::std::mem::MaybeUninit<bdev_specs__bindgen_ty_3> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<bdev_specs__bindgen_ty_3>(),
16usize,
concat!("Size of: ", stringify!(bdev_specs__bindgen_ty_3))
);
assert_eq!(
::std::mem::align_of::<bdev_specs__bindgen_ty_3>(),
8usize,
concat!("Alignment of ", stringify!(bdev_specs__bindgen_ty_3))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rbdname) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs__bindgen_ty_3),
"::",
stringify!(rbdname)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rbdpool) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs__bindgen_ty_3),
"::",
stringify!(rbdpool)
)
);
}
#[test]
fn bindgen_test_layout_bdev_specs() {
const UNINIT: ::std::mem::MaybeUninit<bdev_specs> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<bdev_specs>(),
72usize,
concat!("Size of: ", stringify!(bdev_specs))
);
assert_eq!(
::std::mem::align_of::<bdev_specs>(),
8usize,
concat!("Alignment of ", stringify!(bdev_specs))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fstype) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs),
"::",
stringify!(fstype)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fssize) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs),
"::",
stringify!(fssize)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).zfs) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs),
"::",
stringify!(zfs)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lvm) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs),
"::",
stringify!(lvm)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).dir) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs),
"::",
stringify!(dir)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).rbd) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(bdev_specs),
"::",
stringify!(rbd)
)
);
}
pub const MIGRATE_PRE_DUMP: _bindgen_ty_2 = 0;
pub const MIGRATE_DUMP: _bindgen_ty_2 = 1;
pub const MIGRATE_RESTORE: _bindgen_ty_2 = 2;
pub const MIGRATE_FEATURE_CHECK: _bindgen_ty_2 = 3;
pub type _bindgen_ty_2 = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct migrate_opts {
pub directory: *mut ::std::os::raw::c_char,
pub verbose: bool,
pub stop: bool,
pub predump_dir: *mut ::std::os::raw::c_char,
pub pageserver_address: *mut ::std::os::raw::c_char,
pub pageserver_port: *mut ::std::os::raw::c_char,
pub preserves_inodes: bool,
pub action_script: *mut ::std::os::raw::c_char,
pub disable_skip_in_flight: bool,
pub ghost_limit: u64,
pub features_to_check: u64,
}
#[test]
fn bindgen_test_layout_migrate_opts() {
const UNINIT: ::std::mem::MaybeUninit<migrate_opts> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<migrate_opts>(),
80usize,
concat!("Size of: ", stringify!(migrate_opts))
);
assert_eq!(
::std::mem::align_of::<migrate_opts>(),
8usize,
concat!("Alignment of ", stringify!(migrate_opts))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).directory) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(directory)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).verbose) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(verbose)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).stop) as usize - ptr as usize },
9usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(stop)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).predump_dir) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(predump_dir)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pageserver_address) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(pageserver_address)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pageserver_port) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(pageserver_port)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).preserves_inodes) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(preserves_inodes)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).action_script) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(action_script)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).disable_skip_in_flight) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(disable_skip_in_flight)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ghost_limit) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(ghost_limit)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).features_to_check) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(migrate_opts),
"::",
stringify!(features_to_check)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_console_log {
pub clear: bool,
pub read: bool,
pub read_max: *mut u64,
pub data: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout_lxc_console_log() {
const UNINIT: ::std::mem::MaybeUninit<lxc_console_log> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lxc_console_log>(),
24usize,
concat!("Size of: ", stringify!(lxc_console_log))
);
assert_eq!(
::std::mem::align_of::<lxc_console_log>(),
8usize,
concat!("Alignment of ", stringify!(lxc_console_log))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).clear) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lxc_console_log),
"::",
stringify!(clear)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read) as usize - ptr as usize },
1usize,
concat!(
"Offset of field: ",
stringify!(lxc_console_log),
"::",
stringify!(read)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).read_max) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lxc_console_log),
"::",
stringify!(read_max)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).data) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lxc_console_log),
"::",
stringify!(data)
)
);
}
extern "C" {
pub fn lxc_container_new(
name: *const ::std::os::raw::c_char,
configpath: *const ::std::os::raw::c_char,
) -> *mut lxc_container;
}
extern "C" {
pub fn lxc_container_get(c: *mut lxc_container) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lxc_container_put(c: *mut lxc_container) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lxc_get_wait_states(states: *mut *const ::std::os::raw::c_char)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn lxc_get_global_config_item(
key: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn lxc_get_version() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn list_defined_containers(
lxcpath: *const ::std::os::raw::c_char,
names: *mut *mut *mut ::std::os::raw::c_char,
cret: *mut *mut *mut lxc_container,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn list_active_containers(
lxcpath: *const ::std::os::raw::c_char,
names: *mut *mut *mut ::std::os::raw::c_char,
cret: *mut *mut *mut lxc_container,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn list_all_containers(
lxcpath: *const ::std::os::raw::c_char,
names: *mut *mut *mut ::std::os::raw::c_char,
cret: *mut *mut *mut lxc_container,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_log {
pub name: *const ::std::os::raw::c_char,
pub lxcpath: *const ::std::os::raw::c_char,
pub file: *const ::std::os::raw::c_char,
pub level: *const ::std::os::raw::c_char,
pub prefix: *const ::std::os::raw::c_char,
pub quiet: bool,
}
#[test]
fn bindgen_test_layout_lxc_log() {
const UNINIT: ::std::mem::MaybeUninit<lxc_log> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<lxc_log>(),
48usize,
concat!("Size of: ", stringify!(lxc_log))
);
assert_eq!(
::std::mem::align_of::<lxc_log>(),
8usize,
concat!("Alignment of ", stringify!(lxc_log))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(lxc_log),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lxcpath) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(lxc_log),
"::",
stringify!(lxcpath)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).file) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(lxc_log),
"::",
stringify!(file)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).level) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(lxc_log),
"::",
stringify!(level)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).prefix) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(lxc_log),
"::",
stringify!(prefix)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).quiet) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(lxc_log),
"::",
stringify!(quiet)
)
);
}
extern "C" {
pub fn lxc_log_init(log: *mut lxc_log) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn lxc_log_close();
}
extern "C" {
pub fn lxc_config_item_is_supported(key: *const ::std::os::raw::c_char) -> bool;
}
extern "C" {
pub fn lxc_has_api_extension(extension: *const ::std::os::raw::c_char) -> bool;
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
pub gp_offset: ::std::os::raw::c_uint,
pub fp_offset: ::std::os::raw::c_uint,
pub overflow_arg_area: *mut ::std::os::raw::c_void,
pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout___va_list_tag() {
const UNINIT: ::std::mem::MaybeUninit<__va_list_tag> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<__va_list_tag>(),
24usize,
concat!("Size of: ", stringify!(__va_list_tag))
);
assert_eq!(
::std::mem::align_of::<__va_list_tag>(),
8usize,
concat!("Alignment of ", stringify!(__va_list_tag))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).gp_offset) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(gp_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fp_offset) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(fp_offset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).overflow_arg_area) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(overflow_arg_area)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).reg_save_area) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(__va_list_tag),
"::",
stringify!(reg_save_area)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lxc_conf {
pub _address: u8,
}