|
1 | 1 | /* automatically generated by rust-bindgen 0.65.1 */
|
2 | 2 |
|
3 | 3 | pub const __WORDSIZE: u32 = 64;
|
4 |
| -pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1; |
| 4 | +pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 0; |
5 | 5 | pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
|
6 |
| -pub const __DARWIN_ONLY_VERS_1050: u32 = 1; |
| 6 | +pub const __DARWIN_ONLY_VERS_1050: u32 = 0; |
7 | 7 | pub const __DARWIN_UNIX03: u32 = 1;
|
8 | 8 | pub const __DARWIN_64_BIT_INO_T: u32 = 1;
|
9 | 9 | pub const __DARWIN_VERS_1050: u32 = 1;
|
10 | 10 | pub const __DARWIN_NON_CANCELABLE: u32 = 0;
|
| 11 | +pub const __DARWIN_SUF_64_BIT_INO_T: &[u8; 9usize] = b"$INODE64\0"; |
| 12 | +pub const __DARWIN_SUF_1050: &[u8; 6usize] = b"$1050\0"; |
11 | 13 | pub const __DARWIN_SUF_EXTSN: &[u8; 14usize] = b"$DARWIN_EXTSN\0";
|
12 | 14 | pub const __DARWIN_C_ANSI: u32 = 4096;
|
13 | 15 | pub const __DARWIN_C_FULL: u32 = 900000;
|
14 | 16 | pub const __DARWIN_C_LEVEL: u32 = 900000;
|
15 | 17 | pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
|
16 | 18 | pub const __DARWIN_NO_LONG_LONG: u32 = 0;
|
17 | 19 | pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
|
18 |
| -pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1; |
19 |
| -pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1; |
20 | 20 | pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
|
21 | 21 | pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
|
22 | 22 | pub const __has_ptrcheck: u32 = 0;
|
@@ -75,7 +75,7 @@ pub const WINT_MAX: u32 = 2147483647;
|
75 | 75 | pub const SIG_ATOMIC_MIN: i32 = -2147483648;
|
76 | 76 | pub const SIG_ATOMIC_MAX: u32 = 2147483647;
|
77 | 77 | pub type wchar_t = ::std::os::raw::c_int;
|
78 |
| -pub type max_align_t = f64; |
| 78 | +pub type max_align_t = u128; |
79 | 79 | pub type int_least8_t = i8;
|
80 | 80 | pub type int_least16_t = i16;
|
81 | 81 | pub type int_least32_t = i32;
|
@@ -735,4 +735,67 @@ extern "C" {
|
735 | 735 | extern "C" {
|
736 | 736 | pub fn free_result(result: *mut local_result);
|
737 | 737 | }
|
738 |
| -pub type __builtin_va_list = *mut ::std::os::raw::c_char; |
| 738 | +pub type __builtin_va_list = [__va_list_tag; 1usize]; |
| 739 | +#[repr(C)] |
| 740 | +#[derive(Debug, Copy, Clone)] |
| 741 | +pub struct __va_list_tag { |
| 742 | + pub gp_offset: ::std::os::raw::c_uint, |
| 743 | + pub fp_offset: ::std::os::raw::c_uint, |
| 744 | + pub overflow_arg_area: *mut ::std::os::raw::c_void, |
| 745 | + pub reg_save_area: *mut ::std::os::raw::c_void, |
| 746 | +} |
| 747 | +#[test] |
| 748 | +fn bindgen_test_layout___va_list_tag() { |
| 749 | + const UNINIT: ::std::mem::MaybeUninit<__va_list_tag> = ::std::mem::MaybeUninit::uninit(); |
| 750 | + let ptr = UNINIT.as_ptr(); |
| 751 | + assert_eq!( |
| 752 | + ::std::mem::size_of::<__va_list_tag>(), |
| 753 | + 24usize, |
| 754 | + concat!("Size of: ", stringify!(__va_list_tag)) |
| 755 | + ); |
| 756 | + assert_eq!( |
| 757 | + ::std::mem::align_of::<__va_list_tag>(), |
| 758 | + 8usize, |
| 759 | + concat!("Alignment of ", stringify!(__va_list_tag)) |
| 760 | + ); |
| 761 | + assert_eq!( |
| 762 | + unsafe { ::std::ptr::addr_of!((*ptr).gp_offset) as usize - ptr as usize }, |
| 763 | + 0usize, |
| 764 | + concat!( |
| 765 | + "Offset of field: ", |
| 766 | + stringify!(__va_list_tag), |
| 767 | + "::", |
| 768 | + stringify!(gp_offset) |
| 769 | + ) |
| 770 | + ); |
| 771 | + assert_eq!( |
| 772 | + unsafe { ::std::ptr::addr_of!((*ptr).fp_offset) as usize - ptr as usize }, |
| 773 | + 4usize, |
| 774 | + concat!( |
| 775 | + "Offset of field: ", |
| 776 | + stringify!(__va_list_tag), |
| 777 | + "::", |
| 778 | + stringify!(fp_offset) |
| 779 | + ) |
| 780 | + ); |
| 781 | + assert_eq!( |
| 782 | + unsafe { ::std::ptr::addr_of!((*ptr).overflow_arg_area) as usize - ptr as usize }, |
| 783 | + 8usize, |
| 784 | + concat!( |
| 785 | + "Offset of field: ", |
| 786 | + stringify!(__va_list_tag), |
| 787 | + "::", |
| 788 | + stringify!(overflow_arg_area) |
| 789 | + ) |
| 790 | + ); |
| 791 | + assert_eq!( |
| 792 | + unsafe { ::std::ptr::addr_of!((*ptr).reg_save_area) as usize - ptr as usize }, |
| 793 | + 16usize, |
| 794 | + concat!( |
| 795 | + "Offset of field: ", |
| 796 | + stringify!(__va_list_tag), |
| 797 | + "::", |
| 798 | + stringify!(reg_save_area) |
| 799 | + ) |
| 800 | + ); |
| 801 | +} |
0 commit comments