libabieos_sys/
bindings.rs

1/* automatically generated by rust-bindgen */
2#[deny(clippy::all)]
3
4pub const __WORDSIZE: u32 = 64;
5pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 0;
6pub const __DARWIN_ONLY_VERS_1050: u32 = 0;
7pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
8pub const __DARWIN_UNIX03: u32 = 1;
9pub const __DARWIN_64_BIT_INO_T: u32 = 1;
10pub const __DARWIN_VERS_1050: u32 = 1;
11pub const __DARWIN_NON_CANCELABLE: u32 = 0;
12pub const __DARWIN_SUF_64_BIT_INO_T: &'static [u8; 9usize] = b"$INODE64\0";
13pub const __DARWIN_SUF_1050: &'static [u8; 6usize] = b"$1050\0";
14pub const __DARWIN_SUF_EXTSN: &'static [u8; 14usize] = b"$DARWIN_EXTSN\0";
15pub const __DARWIN_C_ANSI: u32 = 4096;
16pub const __DARWIN_C_FULL: u32 = 900000;
17pub const __DARWIN_C_LEVEL: u32 = 900000;
18pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
19pub const __DARWIN_NO_LONG_LONG: u32 = 0;
20pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
21pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
22pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
23pub const __PTHREAD_SIZE__: u32 = 8176;
24pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
25pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
26pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
27pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
28pub const __PTHREAD_COND_SIZE__: u32 = 40;
29pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
30pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
31pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
32pub const INT8_MAX: u32 = 127;
33pub const INT16_MAX: u32 = 32767;
34pub const INT32_MAX: u32 = 2147483647;
35pub const INT64_MAX: u64 = 9223372036854775807;
36pub const INT8_MIN: i32 = -128;
37pub const INT16_MIN: i32 = -32768;
38pub const INT32_MIN: i32 = -2147483648;
39pub const INT64_MIN: i64 = -9223372036854775808;
40pub const UINT8_MAX: u32 = 255;
41pub const UINT16_MAX: u32 = 65535;
42pub const UINT32_MAX: u32 = 4294967295;
43pub const UINT64_MAX: i32 = -1;
44pub const INT_LEAST8_MIN: i32 = -128;
45pub const INT_LEAST16_MIN: i32 = -32768;
46pub const INT_LEAST32_MIN: i32 = -2147483648;
47pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
48pub const INT_LEAST8_MAX: u32 = 127;
49pub const INT_LEAST16_MAX: u32 = 32767;
50pub const INT_LEAST32_MAX: u32 = 2147483647;
51pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
52pub const UINT_LEAST8_MAX: u32 = 255;
53pub const UINT_LEAST16_MAX: u32 = 65535;
54pub const UINT_LEAST32_MAX: u32 = 4294967295;
55pub const UINT_LEAST64_MAX: i32 = -1;
56pub const INT_FAST8_MIN: i32 = -128;
57pub const INT_FAST16_MIN: i32 = -32768;
58pub const INT_FAST32_MIN: i32 = -2147483648;
59pub const INT_FAST64_MIN: i64 = -9223372036854775808;
60pub const INT_FAST8_MAX: u32 = 127;
61pub const INT_FAST16_MAX: u32 = 32767;
62pub const INT_FAST32_MAX: u32 = 2147483647;
63pub const INT_FAST64_MAX: u64 = 9223372036854775807;
64pub const UINT_FAST8_MAX: u32 = 255;
65pub const UINT_FAST16_MAX: u32 = 65535;
66pub const UINT_FAST32_MAX: u32 = 4294967295;
67pub const UINT_FAST64_MAX: i32 = -1;
68pub const INTPTR_MAX: u64 = 9223372036854775807;
69pub const INTPTR_MIN: i64 = -9223372036854775808;
70pub const UINTPTR_MAX: i32 = -1;
71pub const SIZE_MAX: i32 = -1;
72pub const RSIZE_MAX: i32 = -1;
73pub const WINT_MIN: i32 = -2147483648;
74pub const WINT_MAX: u32 = 2147483647;
75pub const SIG_ATOMIC_MIN: i32 = -2147483648;
76pub const SIG_ATOMIC_MAX: u32 = 2147483647;
77pub type size_t = ::std::os::raw::c_ulong;
78pub type wchar_t = ::std::os::raw::c_int;
79pub type max_align_t = u128;
80pub type int_least8_t = i8;
81pub type int_least16_t = i16;
82pub type int_least32_t = i32;
83pub type int_least64_t = i64;
84pub type uint_least8_t = u8;
85pub type uint_least16_t = u16;
86pub type uint_least32_t = u32;
87pub type uint_least64_t = u64;
88pub type int_fast8_t = i8;
89pub type int_fast16_t = i16;
90pub type int_fast32_t = i32;
91pub type int_fast64_t = i64;
92pub type uint_fast8_t = u8;
93pub type uint_fast16_t = u16;
94pub type uint_fast32_t = u32;
95pub type uint_fast64_t = u64;
96pub type __int8_t = ::std::os::raw::c_schar;
97pub type __uint8_t = ::std::os::raw::c_uchar;
98pub type __int16_t = ::std::os::raw::c_short;
99pub type __uint16_t = ::std::os::raw::c_ushort;
100pub type __int32_t = ::std::os::raw::c_int;
101pub type __uint32_t = ::std::os::raw::c_uint;
102pub type __int64_t = ::std::os::raw::c_longlong;
103pub type __uint64_t = ::std::os::raw::c_ulonglong;
104pub type __darwin_intptr_t = ::std::os::raw::c_long;
105pub type __darwin_natural_t = ::std::os::raw::c_uint;
106pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
107#[repr(C)]
108#[derive(Copy, Clone)]
109pub union __mbstate_t {
110    pub __mbstate8: [::std::os::raw::c_char; 128usize],
111    pub _mbstateL: ::std::os::raw::c_longlong,
112    _bindgen_union_align: [u64; 16usize],
113}
114#[test]
115fn bindgen_test_layout___mbstate_t() {
116    assert_eq!(
117        ::std::mem::size_of::<__mbstate_t>(),
118        128usize,
119        concat!("Size of: ", stringify!(__mbstate_t))
120    );
121    assert_eq!(
122        ::std::mem::align_of::<__mbstate_t>(),
123        8usize,
124        concat!("Alignment of ", stringify!(__mbstate_t))
125    );
126    assert_eq!(
127        unsafe { &(*(::std::ptr::null::<__mbstate_t>())).__mbstate8 as *const _ as usize },
128        0usize,
129        concat!(
130            "Offset of field: ",
131            stringify!(__mbstate_t),
132            "::",
133            stringify!(__mbstate8)
134        )
135    );
136    assert_eq!(
137        unsafe { &(*(::std::ptr::null::<__mbstate_t>()))._mbstateL as *const _ as usize },
138        0usize,
139        concat!(
140            "Offset of field: ",
141            stringify!(__mbstate_t),
142            "::",
143            stringify!(_mbstateL)
144        )
145    );
146}
147pub type __darwin_mbstate_t = __mbstate_t;
148pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
149pub type __darwin_size_t = ::std::os::raw::c_ulong;
150pub type __darwin_va_list = __builtin_va_list;
151pub type __darwin_wchar_t = ::std::os::raw::c_int;
152pub type __darwin_rune_t = __darwin_wchar_t;
153pub type __darwin_wint_t = ::std::os::raw::c_int;
154pub type __darwin_clock_t = ::std::os::raw::c_ulong;
155pub type __darwin_socklen_t = __uint32_t;
156pub type __darwin_ssize_t = ::std::os::raw::c_long;
157pub type __darwin_time_t = ::std::os::raw::c_long;
158pub type __darwin_blkcnt_t = __int64_t;
159pub type __darwin_blksize_t = __int32_t;
160pub type __darwin_dev_t = __int32_t;
161pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
162pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
163pub type __darwin_gid_t = __uint32_t;
164pub type __darwin_id_t = __uint32_t;
165pub type __darwin_ino64_t = __uint64_t;
166pub type __darwin_ino_t = __darwin_ino64_t;
167pub type __darwin_mach_port_name_t = __darwin_natural_t;
168pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
169pub type __darwin_mode_t = __uint16_t;
170pub type __darwin_off_t = __int64_t;
171pub type __darwin_pid_t = __int32_t;
172pub type __darwin_sigset_t = __uint32_t;
173pub type __darwin_suseconds_t = __int32_t;
174pub type __darwin_uid_t = __uint32_t;
175pub type __darwin_useconds_t = __uint32_t;
176pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
177pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
178#[repr(C)]
179#[derive(Debug, Copy, Clone)]
180pub struct __darwin_pthread_handler_rec {
181    pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
182    pub __arg: *mut ::std::os::raw::c_void,
183    pub __next: *mut __darwin_pthread_handler_rec,
184}
185
186#[test]
187fn bindgen_test_layout___darwin_pthread_handler_rec() {
188    assert_eq!(
189        ::std::mem::size_of::<__darwin_pthread_handler_rec>(),
190        24usize,
191        concat!("Size of: ", stringify!(__darwin_pthread_handler_rec))
192    );
193    assert_eq!(
194        ::std::mem::align_of::<__darwin_pthread_handler_rec>(),
195        8usize,
196        concat!("Alignment of ", stringify!(__darwin_pthread_handler_rec))
197    );
198    assert_eq!(
199        unsafe {
200            &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__routine as *const _ as usize
201        },
202        0usize,
203        concat!(
204            "Offset of field: ",
205            stringify!(__darwin_pthread_handler_rec),
206            "::",
207            stringify!(__routine)
208        )
209    );
210    assert_eq!(
211        unsafe {
212            &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__arg as *const _ as usize
213        },
214        8usize,
215        concat!(
216            "Offset of field: ",
217            stringify!(__darwin_pthread_handler_rec),
218            "::",
219            stringify!(__arg)
220        )
221    );
222    assert_eq!(
223        unsafe {
224            &(*(::std::ptr::null::<__darwin_pthread_handler_rec>())).__next as *const _ as usize
225        },
226        16usize,
227        concat!(
228            "Offset of field: ",
229            stringify!(__darwin_pthread_handler_rec),
230            "::",
231            stringify!(__next)
232        )
233    );
234}
235#[repr(C)]
236#[derive(Copy, Clone)]
237pub struct _opaque_pthread_attr_t {
238    pub __sig: ::std::os::raw::c_long,
239    pub __opaque: [::std::os::raw::c_char; 56usize],
240}
241#[test]
242fn bindgen_test_layout__opaque_pthread_attr_t() {
243    assert_eq!(
244        ::std::mem::size_of::<_opaque_pthread_attr_t>(),
245        64usize,
246        concat!("Size of: ", stringify!(_opaque_pthread_attr_t))
247    );
248    assert_eq!(
249        ::std::mem::align_of::<_opaque_pthread_attr_t>(),
250        8usize,
251        concat!("Alignment of ", stringify!(_opaque_pthread_attr_t))
252    );
253    assert_eq!(
254        unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__sig as *const _ as usize },
255        0usize,
256        concat!(
257            "Offset of field: ",
258            stringify!(_opaque_pthread_attr_t),
259            "::",
260            stringify!(__sig)
261        )
262    );
263    assert_eq!(
264        unsafe { &(*(::std::ptr::null::<_opaque_pthread_attr_t>())).__opaque as *const _ as usize },
265        8usize,
266        concat!(
267            "Offset of field: ",
268            stringify!(_opaque_pthread_attr_t),
269            "::",
270            stringify!(__opaque)
271        )
272    );
273}
274#[repr(C)]
275#[derive(Copy, Clone)]
276pub struct _opaque_pthread_cond_t {
277    pub __sig: ::std::os::raw::c_long,
278    pub __opaque: [::std::os::raw::c_char; 40usize],
279}
280#[test]
281fn bindgen_test_layout__opaque_pthread_cond_t() {
282    assert_eq!(
283        ::std::mem::size_of::<_opaque_pthread_cond_t>(),
284        48usize,
285        concat!("Size of: ", stringify!(_opaque_pthread_cond_t))
286    );
287    assert_eq!(
288        ::std::mem::align_of::<_opaque_pthread_cond_t>(),
289        8usize,
290        concat!("Alignment of ", stringify!(_opaque_pthread_cond_t))
291    );
292    assert_eq!(
293        unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__sig as *const _ as usize },
294        0usize,
295        concat!(
296            "Offset of field: ",
297            stringify!(_opaque_pthread_cond_t),
298            "::",
299            stringify!(__sig)
300        )
301    );
302    assert_eq!(
303        unsafe { &(*(::std::ptr::null::<_opaque_pthread_cond_t>())).__opaque as *const _ as usize },
304        8usize,
305        concat!(
306            "Offset of field: ",
307            stringify!(_opaque_pthread_cond_t),
308            "::",
309            stringify!(__opaque)
310        )
311    );
312}
313#[repr(C)]
314#[derive(Debug, Copy, Clone)]
315pub struct _opaque_pthread_condattr_t {
316    pub __sig: ::std::os::raw::c_long,
317    pub __opaque: [::std::os::raw::c_char; 8usize],
318}
319#[test]
320fn bindgen_test_layout__opaque_pthread_condattr_t() {
321    assert_eq!(
322        ::std::mem::size_of::<_opaque_pthread_condattr_t>(),
323        16usize,
324        concat!("Size of: ", stringify!(_opaque_pthread_condattr_t))
325    );
326    assert_eq!(
327        ::std::mem::align_of::<_opaque_pthread_condattr_t>(),
328        8usize,
329        concat!("Alignment of ", stringify!(_opaque_pthread_condattr_t))
330    );
331    assert_eq!(
332        unsafe {
333            &(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__sig as *const _ as usize
334        },
335        0usize,
336        concat!(
337            "Offset of field: ",
338            stringify!(_opaque_pthread_condattr_t),
339            "::",
340            stringify!(__sig)
341        )
342    );
343    assert_eq!(
344        unsafe {
345            &(*(::std::ptr::null::<_opaque_pthread_condattr_t>())).__opaque as *const _ as usize
346        },
347        8usize,
348        concat!(
349            "Offset of field: ",
350            stringify!(_opaque_pthread_condattr_t),
351            "::",
352            stringify!(__opaque)
353        )
354    );
355}
356#[repr(C)]
357#[derive(Copy, Clone)]
358pub struct _opaque_pthread_mutex_t {
359    pub __sig: ::std::os::raw::c_long,
360    pub __opaque: [::std::os::raw::c_char; 56usize],
361}
362#[test]
363fn bindgen_test_layout__opaque_pthread_mutex_t() {
364    assert_eq!(
365        ::std::mem::size_of::<_opaque_pthread_mutex_t>(),
366        64usize,
367        concat!("Size of: ", stringify!(_opaque_pthread_mutex_t))
368    );
369    assert_eq!(
370        ::std::mem::align_of::<_opaque_pthread_mutex_t>(),
371        8usize,
372        concat!("Alignment of ", stringify!(_opaque_pthread_mutex_t))
373    );
374    assert_eq!(
375        unsafe { &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__sig as *const _ as usize },
376        0usize,
377        concat!(
378            "Offset of field: ",
379            stringify!(_opaque_pthread_mutex_t),
380            "::",
381            stringify!(__sig)
382        )
383    );
384    assert_eq!(
385        unsafe {
386            &(*(::std::ptr::null::<_opaque_pthread_mutex_t>())).__opaque as *const _ as usize
387        },
388        8usize,
389        concat!(
390            "Offset of field: ",
391            stringify!(_opaque_pthread_mutex_t),
392            "::",
393            stringify!(__opaque)
394        )
395    );
396}
397#[repr(C)]
398#[derive(Debug, Copy, Clone)]
399pub struct _opaque_pthread_mutexattr_t {
400    pub __sig: ::std::os::raw::c_long,
401    pub __opaque: [::std::os::raw::c_char; 8usize],
402}
403#[test]
404fn bindgen_test_layout__opaque_pthread_mutexattr_t() {
405    assert_eq!(
406        ::std::mem::size_of::<_opaque_pthread_mutexattr_t>(),
407        16usize,
408        concat!("Size of: ", stringify!(_opaque_pthread_mutexattr_t))
409    );
410    assert_eq!(
411        ::std::mem::align_of::<_opaque_pthread_mutexattr_t>(),
412        8usize,
413        concat!("Alignment of ", stringify!(_opaque_pthread_mutexattr_t))
414    );
415    assert_eq!(
416        unsafe {
417            &(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__sig as *const _ as usize
418        },
419        0usize,
420        concat!(
421            "Offset of field: ",
422            stringify!(_opaque_pthread_mutexattr_t),
423            "::",
424            stringify!(__sig)
425        )
426    );
427    assert_eq!(
428        unsafe {
429            &(*(::std::ptr::null::<_opaque_pthread_mutexattr_t>())).__opaque as *const _ as usize
430        },
431        8usize,
432        concat!(
433            "Offset of field: ",
434            stringify!(_opaque_pthread_mutexattr_t),
435            "::",
436            stringify!(__opaque)
437        )
438    );
439}
440#[repr(C)]
441#[derive(Debug, Copy, Clone)]
442pub struct _opaque_pthread_once_t {
443    pub __sig: ::std::os::raw::c_long,
444    pub __opaque: [::std::os::raw::c_char; 8usize],
445}
446#[test]
447fn bindgen_test_layout__opaque_pthread_once_t() {
448    assert_eq!(
449        ::std::mem::size_of::<_opaque_pthread_once_t>(),
450        16usize,
451        concat!("Size of: ", stringify!(_opaque_pthread_once_t))
452    );
453    assert_eq!(
454        ::std::mem::align_of::<_opaque_pthread_once_t>(),
455        8usize,
456        concat!("Alignment of ", stringify!(_opaque_pthread_once_t))
457    );
458    assert_eq!(
459        unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__sig as *const _ as usize },
460        0usize,
461        concat!(
462            "Offset of field: ",
463            stringify!(_opaque_pthread_once_t),
464            "::",
465            stringify!(__sig)
466        )
467    );
468    assert_eq!(
469        unsafe { &(*(::std::ptr::null::<_opaque_pthread_once_t>())).__opaque as *const _ as usize },
470        8usize,
471        concat!(
472            "Offset of field: ",
473            stringify!(_opaque_pthread_once_t),
474            "::",
475            stringify!(__opaque)
476        )
477    );
478}
479#[repr(C)]
480#[derive(Copy, Clone)]
481pub struct _opaque_pthread_rwlock_t {
482    pub __sig: ::std::os::raw::c_long,
483    pub __opaque: [::std::os::raw::c_char; 192usize],
484}
485#[test]
486fn bindgen_test_layout__opaque_pthread_rwlock_t() {
487    assert_eq!(
488        ::std::mem::size_of::<_opaque_pthread_rwlock_t>(),
489        200usize,
490        concat!("Size of: ", stringify!(_opaque_pthread_rwlock_t))
491    );
492    assert_eq!(
493        ::std::mem::align_of::<_opaque_pthread_rwlock_t>(),
494        8usize,
495        concat!("Alignment of ", stringify!(_opaque_pthread_rwlock_t))
496    );
497    assert_eq!(
498        unsafe { &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__sig as *const _ as usize },
499        0usize,
500        concat!(
501            "Offset of field: ",
502            stringify!(_opaque_pthread_rwlock_t),
503            "::",
504            stringify!(__sig)
505        )
506    );
507    assert_eq!(
508        unsafe {
509            &(*(::std::ptr::null::<_opaque_pthread_rwlock_t>())).__opaque as *const _ as usize
510        },
511        8usize,
512        concat!(
513            "Offset of field: ",
514            stringify!(_opaque_pthread_rwlock_t),
515            "::",
516            stringify!(__opaque)
517        )
518    );
519}
520#[repr(C)]
521#[derive(Debug, Copy, Clone)]
522pub struct _opaque_pthread_rwlockattr_t {
523    pub __sig: ::std::os::raw::c_long,
524    pub __opaque: [::std::os::raw::c_char; 16usize],
525}
526#[test]
527fn bindgen_test_layout__opaque_pthread_rwlockattr_t() {
528    assert_eq!(
529        ::std::mem::size_of::<_opaque_pthread_rwlockattr_t>(),
530        24usize,
531        concat!("Size of: ", stringify!(_opaque_pthread_rwlockattr_t))
532    );
533    assert_eq!(
534        ::std::mem::align_of::<_opaque_pthread_rwlockattr_t>(),
535        8usize,
536        concat!("Alignment of ", stringify!(_opaque_pthread_rwlockattr_t))
537    );
538    assert_eq!(
539        unsafe {
540            &(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__sig as *const _ as usize
541        },
542        0usize,
543        concat!(
544            "Offset of field: ",
545            stringify!(_opaque_pthread_rwlockattr_t),
546            "::",
547            stringify!(__sig)
548        )
549    );
550    assert_eq!(
551        unsafe {
552            &(*(::std::ptr::null::<_opaque_pthread_rwlockattr_t>())).__opaque as *const _ as usize
553        },
554        8usize,
555        concat!(
556            "Offset of field: ",
557            stringify!(_opaque_pthread_rwlockattr_t),
558            "::",
559            stringify!(__opaque)
560        )
561    );
562}
563#[repr(C)]
564#[derive(Copy, Clone)]
565pub struct _opaque_pthread_t {
566    pub __sig: ::std::os::raw::c_long,
567    pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
568    pub __opaque: [::std::os::raw::c_char; 8176usize],
569}
570#[test]
571fn bindgen_test_layout__opaque_pthread_t() {
572    assert_eq!(
573        ::std::mem::size_of::<_opaque_pthread_t>(),
574        8192usize,
575        concat!("Size of: ", stringify!(_opaque_pthread_t))
576    );
577    assert_eq!(
578        ::std::mem::align_of::<_opaque_pthread_t>(),
579        8usize,
580        concat!("Alignment of ", stringify!(_opaque_pthread_t))
581    );
582    assert_eq!(
583        unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__sig as *const _ as usize },
584        0usize,
585        concat!(
586            "Offset of field: ",
587            stringify!(_opaque_pthread_t),
588            "::",
589            stringify!(__sig)
590        )
591    );
592    assert_eq!(
593        unsafe {
594            &(*(::std::ptr::null::<_opaque_pthread_t>())).__cleanup_stack as *const _ as usize
595        },
596        8usize,
597        concat!(
598            "Offset of field: ",
599            stringify!(_opaque_pthread_t),
600            "::",
601            stringify!(__cleanup_stack)
602        )
603    );
604    assert_eq!(
605        unsafe { &(*(::std::ptr::null::<_opaque_pthread_t>())).__opaque as *const _ as usize },
606        16usize,
607        concat!(
608            "Offset of field: ",
609            stringify!(_opaque_pthread_t),
610            "::",
611            stringify!(__opaque)
612        )
613    );
614}
615pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
616pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
617pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
618pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
619pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
620pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
621pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
622pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
623pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
624pub type __darwin_pthread_t = *mut _opaque_pthread_t;
625pub type u_int8_t = ::std::os::raw::c_uchar;
626pub type u_int16_t = ::std::os::raw::c_ushort;
627pub type u_int32_t = ::std::os::raw::c_uint;
628pub type u_int64_t = ::std::os::raw::c_ulonglong;
629pub type register_t = i64;
630pub type user_addr_t = u_int64_t;
631pub type user_size_t = u_int64_t;
632pub type user_ssize_t = i64;
633pub type user_long_t = i64;
634pub type user_ulong_t = u_int64_t;
635pub type user_time_t = i64;
636pub type user_off_t = i64;
637pub type syscall_arg_t = u_int64_t;
638pub type intmax_t = ::std::os::raw::c_long;
639pub type uintmax_t = ::std::os::raw::c_ulong;
640#[repr(C)]
641#[derive(Debug, Copy, Clone)]
642pub struct abieos_context_s {
643    _unused: [u8; 0],
644}
645pub type abieos_context = abieos_context_s;
646pub type abieos_bool = ::std::os::raw::c_int;
647extern "C" {
648    pub fn abieos_create() -> *mut abieos_context;
649}
650extern "C" {
651    pub fn abieos_destroy(context: *mut abieos_context);
652}
653extern "C" {
654    pub fn abieos_get_error(context: *mut abieos_context) -> *const ::std::os::raw::c_char;
655}
656extern "C" {
657    pub fn abieos_get_bin_size(context: *mut abieos_context) -> ::std::os::raw::c_int;
658}
659extern "C" {
660    pub fn abieos_get_bin_data(context: *mut abieos_context) -> *const ::std::os::raw::c_char;
661}
662extern "C" {
663    pub fn abieos_get_bin_hex(context: *mut abieos_context) -> *const ::std::os::raw::c_char;
664}
665extern "C" {
666    pub fn abieos_string_to_name(
667        context: *mut abieos_context,
668        str: *const ::std::os::raw::c_char,
669    ) -> u64;
670}
671extern "C" {
672    pub fn abieos_name_to_string(
673        context: *mut abieos_context,
674        name: u64,
675    ) -> *const ::std::os::raw::c_char;
676}
677extern "C" {
678    pub fn abieos_set_abi(
679        context: *mut abieos_context,
680        contract: u64,
681        abi: *const ::std::os::raw::c_char,
682    ) -> abieos_bool;
683}
684extern "C" {
685    pub fn abieos_set_abi_bin(
686        context: *mut abieos_context,
687        contract: u64,
688        data: *const ::std::os::raw::c_char,
689        size: size_t,
690    ) -> abieos_bool;
691}
692extern "C" {
693    pub fn abieos_set_abi_hex(
694        context: *mut abieos_context,
695        contract: u64,
696        hex: *const ::std::os::raw::c_char,
697    ) -> abieos_bool;
698}
699extern "C" {
700    pub fn abieos_get_type_for_action(
701        context: *mut abieos_context,
702        contract: u64,
703        action: u64,
704    ) -> *const ::std::os::raw::c_char;
705}
706extern "C" {
707    pub fn abieos_get_type_for_table(
708        context: *mut abieos_context,
709        contract: u64,
710        table: u64,
711    ) -> *const ::std::os::raw::c_char;
712}
713extern "C" {
714    pub fn abieos_json_to_bin(
715        context: *mut abieos_context,
716        contract: u64,
717        type_: *const ::std::os::raw::c_char,
718        json: *const ::std::os::raw::c_char,
719    ) -> abieos_bool;
720}
721extern "C" {
722    pub fn abieos_json_to_bin_reorderable(
723        context: *mut abieos_context,
724        contract: u64,
725        type_: *const ::std::os::raw::c_char,
726        json: *const ::std::os::raw::c_char,
727    ) -> abieos_bool;
728}
729extern "C" {
730    pub fn abieos_bin_to_json(
731        context: *mut abieos_context,
732        contract: u64,
733        type_: *const ::std::os::raw::c_char,
734        data: *const ::std::os::raw::c_char,
735        size: size_t,
736    ) -> *const ::std::os::raw::c_char;
737}
738extern "C" {
739    pub fn abieos_hex_to_json(
740        context: *mut abieos_context,
741        contract: u64,
742        type_: *const ::std::os::raw::c_char,
743        hex: *const ::std::os::raw::c_char,
744    ) -> *const ::std::os::raw::c_char;
745}
746pub type __builtin_va_list = [__va_list_tag; 1usize];
747#[repr(C)]
748#[derive(Debug, Copy, Clone)]
749pub struct __va_list_tag {
750    pub gp_offset: ::std::os::raw::c_uint,
751    pub fp_offset: ::std::os::raw::c_uint,
752    pub overflow_arg_area: *mut ::std::os::raw::c_void,
753    pub reg_save_area: *mut ::std::os::raw::c_void,
754}
755#[test]
756fn bindgen_test_layout___va_list_tag() {
757    assert_eq!(
758        ::std::mem::size_of::<__va_list_tag>(),
759        24usize,
760        concat!("Size of: ", stringify!(__va_list_tag))
761    );
762    assert_eq!(
763        ::std::mem::align_of::<__va_list_tag>(),
764        8usize,
765        concat!("Alignment of ", stringify!(__va_list_tag))
766    );
767    assert_eq!(
768        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).gp_offset as *const _ as usize },
769        0usize,
770        concat!(
771            "Offset of field: ",
772            stringify!(__va_list_tag),
773            "::",
774            stringify!(gp_offset)
775        )
776    );
777    assert_eq!(
778        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).fp_offset as *const _ as usize },
779        4usize,
780        concat!(
781            "Offset of field: ",
782            stringify!(__va_list_tag),
783            "::",
784            stringify!(fp_offset)
785        )
786    );
787    assert_eq!(
788        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).overflow_arg_area as *const _ as usize },
789        8usize,
790        concat!(
791            "Offset of field: ",
792            stringify!(__va_list_tag),
793            "::",
794            stringify!(overflow_arg_area)
795        )
796    );
797    assert_eq!(
798        unsafe { &(*(::std::ptr::null::<__va_list_tag>())).reg_save_area as *const _ as usize },
799        16usize,
800        concat!(
801            "Offset of field: ",
802            stringify!(__va_list_tag),
803            "::",
804            stringify!(reg_save_area)
805        )
806    );
807}