libsbc_sys/
bindings.rs

1/* automatically generated by rust-bindgen */
2
3pub const _STDINT_H: u32 = 1;
4pub const _FEATURES_H: u32 = 1;
5pub const _DEFAULT_SOURCE: u32 = 1;
6pub const __USE_ISOC11: u32 = 1;
7pub const __USE_ISOC99: u32 = 1;
8pub const __USE_ISOC95: u32 = 1;
9pub const __USE_POSIX_IMPLICITLY: u32 = 1;
10pub const _POSIX_SOURCE: u32 = 1;
11pub const _POSIX_C_SOURCE: u32 = 200809;
12pub const __USE_POSIX: u32 = 1;
13pub const __USE_POSIX2: u32 = 1;
14pub const __USE_POSIX199309: u32 = 1;
15pub const __USE_POSIX199506: u32 = 1;
16pub const __USE_XOPEN2K: u32 = 1;
17pub const __USE_XOPEN2K8: u32 = 1;
18pub const _ATFILE_SOURCE: u32 = 1;
19pub const __USE_MISC: u32 = 1;
20pub const __USE_ATFILE: u32 = 1;
21pub const __USE_FORTIFY_LEVEL: u32 = 0;
22pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
23pub const _STDC_PREDEF_H: u32 = 1;
24pub const __STDC_IEC_559__: u32 = 1;
25pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
26pub const __STDC_ISO_10646__: u32 = 201706;
27pub const __GNU_LIBRARY__: u32 = 6;
28pub const __GLIBC__: u32 = 2;
29pub const __GLIBC_MINOR__: u32 = 28;
30pub const _SYS_CDEFS_H: u32 = 1;
31pub const __glibc_c99_flexarr_available: u32 = 1;
32pub const __WORDSIZE: u32 = 64;
33pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
34pub const __SYSCALL_WORDSIZE: u32 = 64;
35pub const __HAVE_GENERIC_SELECTION: u32 = 1;
36pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
37pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
38pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
39pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
40pub const _BITS_TYPES_H: u32 = 1;
41pub const _BITS_TYPESIZES_H: u32 = 1;
42pub const __OFF_T_MATCHES_OFF64_T: u32 = 1;
43pub const __INO_T_MATCHES_INO64_T: u32 = 1;
44pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1;
45pub const __FD_SETSIZE: u32 = 1024;
46pub const _BITS_WCHAR_H: u32 = 1;
47pub const _BITS_STDINT_INTN_H: u32 = 1;
48pub const _BITS_STDINT_UINTN_H: u32 = 1;
49pub const INT8_MIN: i32 = -128;
50pub const INT16_MIN: i32 = -32768;
51pub const INT32_MIN: i32 = -2147483648;
52pub const INT8_MAX: u32 = 127;
53pub const INT16_MAX: u32 = 32767;
54pub const INT32_MAX: u32 = 2147483647;
55pub const UINT8_MAX: u32 = 255;
56pub const UINT16_MAX: u32 = 65535;
57pub const UINT32_MAX: u32 = 4294967295;
58pub const INT_LEAST8_MIN: i32 = -128;
59pub const INT_LEAST16_MIN: i32 = -32768;
60pub const INT_LEAST32_MIN: i32 = -2147483648;
61pub const INT_LEAST8_MAX: u32 = 127;
62pub const INT_LEAST16_MAX: u32 = 32767;
63pub const INT_LEAST32_MAX: u32 = 2147483647;
64pub const UINT_LEAST8_MAX: u32 = 255;
65pub const UINT_LEAST16_MAX: u32 = 65535;
66pub const UINT_LEAST32_MAX: u32 = 4294967295;
67pub const INT_FAST8_MIN: i32 = -128;
68pub const INT_FAST16_MIN: i64 = -9223372036854775808;
69pub const INT_FAST32_MIN: i64 = -9223372036854775808;
70pub const INT_FAST8_MAX: u32 = 127;
71pub const INT_FAST16_MAX: u64 = 9223372036854775807;
72pub const INT_FAST32_MAX: u64 = 9223372036854775807;
73pub const UINT_FAST8_MAX: u32 = 255;
74pub const UINT_FAST16_MAX: i32 = -1;
75pub const UINT_FAST32_MAX: i32 = -1;
76pub const INTPTR_MIN: i64 = -9223372036854775808;
77pub const INTPTR_MAX: u64 = 9223372036854775807;
78pub const UINTPTR_MAX: i32 = -1;
79pub const PTRDIFF_MIN: i64 = -9223372036854775808;
80pub const PTRDIFF_MAX: u64 = 9223372036854775807;
81pub const SIG_ATOMIC_MIN: i32 = -2147483648;
82pub const SIG_ATOMIC_MAX: u32 = 2147483647;
83pub const SIZE_MAX: i32 = -1;
84pub const WINT_MIN: u32 = 0;
85pub const WINT_MAX: u32 = 4294967295;
86pub const _SYS_TYPES_H: u32 = 1;
87pub const __clock_t_defined: u32 = 1;
88pub const __clockid_t_defined: u32 = 1;
89pub const __time_t_defined: u32 = 1;
90pub const __timer_t_defined: u32 = 1;
91pub const __BIT_TYPES_DEFINED__: u32 = 1;
92pub const _ENDIAN_H: u32 = 1;
93pub const __LITTLE_ENDIAN: u32 = 1234;
94pub const __BIG_ENDIAN: u32 = 4321;
95pub const __PDP_ENDIAN: u32 = 3412;
96pub const __BYTE_ORDER: u32 = 1234;
97pub const __FLOAT_WORD_ORDER: u32 = 1234;
98pub const LITTLE_ENDIAN: u32 = 1234;
99pub const BIG_ENDIAN: u32 = 4321;
100pub const PDP_ENDIAN: u32 = 3412;
101pub const BYTE_ORDER: u32 = 1234;
102pub const _BITS_BYTESWAP_H: u32 = 1;
103pub const _BITS_UINTN_IDENTITY_H: u32 = 1;
104pub const _SYS_SELECT_H: u32 = 1;
105pub const __FD_ZERO_STOS: &'static [u8; 6usize] = b"stosq\0";
106pub const __sigset_t_defined: u32 = 1;
107pub const __timeval_defined: u32 = 1;
108pub const _STRUCT_TIMESPEC: u32 = 1;
109pub const FD_SETSIZE: u32 = 1024;
110pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1;
111pub const _THREAD_SHARED_TYPES_H: u32 = 1;
112pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1;
113pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40;
114pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56;
115pub const __SIZEOF_PTHREAD_RWLOCK_T: u32 = 56;
116pub const __SIZEOF_PTHREAD_BARRIER_T: u32 = 32;
117pub const __SIZEOF_PTHREAD_MUTEXATTR_T: u32 = 4;
118pub const __SIZEOF_PTHREAD_COND_T: u32 = 48;
119pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4;
120pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8;
121pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4;
122pub const __PTHREAD_MUTEX_LOCK_ELISION: u32 = 1;
123pub const __PTHREAD_MUTEX_NUSERS_AFTER_KIND: u32 = 0;
124pub const __PTHREAD_MUTEX_USE_UNION: u32 = 0;
125pub const __PTHREAD_RWLOCK_INT_FLAGS_SHARED: u32 = 1;
126pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1;
127pub const __have_pthread_attr_t: u32 = 1;
128pub const SBC_FREQ_16000: u32 = 0;
129pub const SBC_FREQ_32000: u32 = 1;
130pub const SBC_FREQ_44100: u32 = 2;
131pub const SBC_FREQ_48000: u32 = 3;
132pub const SBC_BLK_4: u32 = 0;
133pub const SBC_BLK_8: u32 = 1;
134pub const SBC_BLK_12: u32 = 2;
135pub const SBC_BLK_16: u32 = 3;
136pub const SBC_MODE_MONO: u32 = 0;
137pub const SBC_MODE_DUAL_CHANNEL: u32 = 1;
138pub const SBC_MODE_STEREO: u32 = 2;
139pub const SBC_MODE_JOINT_STEREO: u32 = 3;
140pub const SBC_AM_LOUDNESS: u32 = 0;
141pub const SBC_AM_SNR: u32 = 1;
142pub const SBC_SB_4: u32 = 0;
143pub const SBC_SB_8: u32 = 1;
144pub const SBC_LE: u32 = 0;
145pub const SBC_BE: u32 = 1;
146pub type __u_char = ::std::os::raw::c_uchar;
147pub type __u_short = ::std::os::raw::c_ushort;
148pub type __u_int = ::std::os::raw::c_uint;
149pub type __u_long = ::std::os::raw::c_ulong;
150pub type __int8_t = ::std::os::raw::c_schar;
151pub type __uint8_t = ::std::os::raw::c_uchar;
152pub type __int16_t = ::std::os::raw::c_short;
153pub type __uint16_t = ::std::os::raw::c_ushort;
154pub type __int32_t = ::std::os::raw::c_int;
155pub type __uint32_t = ::std::os::raw::c_uint;
156pub type __int64_t = ::std::os::raw::c_long;
157pub type __uint64_t = ::std::os::raw::c_ulong;
158pub type __int_least8_t = __int8_t;
159pub type __uint_least8_t = __uint8_t;
160pub type __int_least16_t = __int16_t;
161pub type __uint_least16_t = __uint16_t;
162pub type __int_least32_t = __int32_t;
163pub type __uint_least32_t = __uint32_t;
164pub type __int_least64_t = __int64_t;
165pub type __uint_least64_t = __uint64_t;
166pub type __quad_t = ::std::os::raw::c_long;
167pub type __u_quad_t = ::std::os::raw::c_ulong;
168pub type __intmax_t = ::std::os::raw::c_long;
169pub type __uintmax_t = ::std::os::raw::c_ulong;
170pub type __dev_t = ::std::os::raw::c_ulong;
171pub type __uid_t = ::std::os::raw::c_uint;
172pub type __gid_t = ::std::os::raw::c_uint;
173pub type __ino_t = ::std::os::raw::c_ulong;
174pub type __ino64_t = ::std::os::raw::c_ulong;
175pub type __mode_t = ::std::os::raw::c_uint;
176pub type __nlink_t = ::std::os::raw::c_ulong;
177pub type __off_t = ::std::os::raw::c_long;
178pub type __off64_t = ::std::os::raw::c_long;
179pub type __pid_t = ::std::os::raw::c_int;
180#[repr(C)]
181#[derive(Debug, Copy, Clone)]
182pub struct __fsid_t {
183    pub __val: [::std::os::raw::c_int; 2usize],
184}
185#[test]
186fn bindgen_test_layout___fsid_t() {
187    assert_eq!(
188        ::std::mem::size_of::<__fsid_t>(),
189        8usize,
190        concat!("Size of: ", stringify!(__fsid_t))
191    );
192    assert_eq!(
193        ::std::mem::align_of::<__fsid_t>(),
194        4usize,
195        concat!("Alignment of ", stringify!(__fsid_t))
196    );
197    assert_eq!(
198        unsafe { &(*(::std::ptr::null::<__fsid_t>())).__val as *const _ as usize },
199        0usize,
200        concat!(
201            "Offset of field: ",
202            stringify!(__fsid_t),
203            "::",
204            stringify!(__val)
205        )
206    );
207}
208pub type __clock_t = ::std::os::raw::c_long;
209pub type __rlim_t = ::std::os::raw::c_ulong;
210pub type __rlim64_t = ::std::os::raw::c_ulong;
211pub type __id_t = ::std::os::raw::c_uint;
212pub type __time_t = ::std::os::raw::c_long;
213pub type __useconds_t = ::std::os::raw::c_uint;
214pub type __suseconds_t = ::std::os::raw::c_long;
215pub type __daddr_t = ::std::os::raw::c_int;
216pub type __key_t = ::std::os::raw::c_int;
217pub type __clockid_t = ::std::os::raw::c_int;
218pub type __timer_t = *mut ::std::os::raw::c_void;
219pub type __blksize_t = ::std::os::raw::c_long;
220pub type __blkcnt_t = ::std::os::raw::c_long;
221pub type __blkcnt64_t = ::std::os::raw::c_long;
222pub type __fsblkcnt_t = ::std::os::raw::c_ulong;
223pub type __fsblkcnt64_t = ::std::os::raw::c_ulong;
224pub type __fsfilcnt_t = ::std::os::raw::c_ulong;
225pub type __fsfilcnt64_t = ::std::os::raw::c_ulong;
226pub type __fsword_t = ::std::os::raw::c_long;
227pub type __ssize_t = ::std::os::raw::c_long;
228pub type __syscall_slong_t = ::std::os::raw::c_long;
229pub type __syscall_ulong_t = ::std::os::raw::c_ulong;
230pub type __loff_t = __off64_t;
231pub type __caddr_t = *mut ::std::os::raw::c_char;
232pub type __intptr_t = ::std::os::raw::c_long;
233pub type __socklen_t = ::std::os::raw::c_uint;
234pub type __sig_atomic_t = ::std::os::raw::c_int;
235pub type int_least8_t = __int_least8_t;
236pub type int_least16_t = __int_least16_t;
237pub type int_least32_t = __int_least32_t;
238pub type int_least64_t = __int_least64_t;
239pub type uint_least8_t = __uint_least8_t;
240pub type uint_least16_t = __uint_least16_t;
241pub type uint_least32_t = __uint_least32_t;
242pub type uint_least64_t = __uint_least64_t;
243pub type int_fast8_t = ::std::os::raw::c_schar;
244pub type int_fast16_t = ::std::os::raw::c_long;
245pub type int_fast32_t = ::std::os::raw::c_long;
246pub type int_fast64_t = ::std::os::raw::c_long;
247pub type uint_fast8_t = ::std::os::raw::c_uchar;
248pub type uint_fast16_t = ::std::os::raw::c_ulong;
249pub type uint_fast32_t = ::std::os::raw::c_ulong;
250pub type uint_fast64_t = ::std::os::raw::c_ulong;
251pub type intmax_t = __intmax_t;
252pub type uintmax_t = __uintmax_t;
253pub type u_char = __u_char;
254pub type u_short = __u_short;
255pub type u_int = __u_int;
256pub type u_long = __u_long;
257pub type quad_t = __quad_t;
258pub type u_quad_t = __u_quad_t;
259pub type fsid_t = __fsid_t;
260pub type loff_t = __loff_t;
261pub type ino_t = __ino_t;
262pub type dev_t = __dev_t;
263pub type gid_t = __gid_t;
264pub type mode_t = __mode_t;
265pub type nlink_t = __nlink_t;
266pub type uid_t = __uid_t;
267pub type off_t = __off_t;
268pub type pid_t = __pid_t;
269pub type id_t = __id_t;
270pub type daddr_t = __daddr_t;
271pub type caddr_t = __caddr_t;
272pub type key_t = __key_t;
273pub type clock_t = __clock_t;
274pub type clockid_t = __clockid_t;
275pub type time_t = __time_t;
276pub type timer_t = __timer_t;
277pub type ulong = ::std::os::raw::c_ulong;
278pub type ushort = ::std::os::raw::c_ushort;
279pub type uint = ::std::os::raw::c_uint;
280pub type u_int8_t = ::std::os::raw::c_uchar;
281pub type u_int16_t = ::std::os::raw::c_ushort;
282pub type u_int32_t = ::std::os::raw::c_uint;
283pub type u_int64_t = ::std::os::raw::c_ulong;
284pub type register_t = ::std::os::raw::c_long;
285#[repr(C)]
286#[derive(Debug, Copy, Clone)]
287pub struct __sigset_t {
288    pub __val: [::std::os::raw::c_ulong; 16usize],
289}
290#[test]
291fn bindgen_test_layout___sigset_t() {
292    assert_eq!(
293        ::std::mem::size_of::<__sigset_t>(),
294        128usize,
295        concat!("Size of: ", stringify!(__sigset_t))
296    );
297    assert_eq!(
298        ::std::mem::align_of::<__sigset_t>(),
299        8usize,
300        concat!("Alignment of ", stringify!(__sigset_t))
301    );
302    assert_eq!(
303        unsafe { &(*(::std::ptr::null::<__sigset_t>())).__val as *const _ as usize },
304        0usize,
305        concat!(
306            "Offset of field: ",
307            stringify!(__sigset_t),
308            "::",
309            stringify!(__val)
310        )
311    );
312}
313pub type sigset_t = __sigset_t;
314#[repr(C)]
315#[derive(Debug, Copy, Clone)]
316pub struct timeval {
317    pub tv_sec: __time_t,
318    pub tv_usec: __suseconds_t,
319}
320#[test]
321fn bindgen_test_layout_timeval() {
322    assert_eq!(
323        ::std::mem::size_of::<timeval>(),
324        16usize,
325        concat!("Size of: ", stringify!(timeval))
326    );
327    assert_eq!(
328        ::std::mem::align_of::<timeval>(),
329        8usize,
330        concat!("Alignment of ", stringify!(timeval))
331    );
332    assert_eq!(
333        unsafe { &(*(::std::ptr::null::<timeval>())).tv_sec as *const _ as usize },
334        0usize,
335        concat!(
336            "Offset of field: ",
337            stringify!(timeval),
338            "::",
339            stringify!(tv_sec)
340        )
341    );
342    assert_eq!(
343        unsafe { &(*(::std::ptr::null::<timeval>())).tv_usec as *const _ as usize },
344        8usize,
345        concat!(
346            "Offset of field: ",
347            stringify!(timeval),
348            "::",
349            stringify!(tv_usec)
350        )
351    );
352}
353#[repr(C)]
354#[derive(Debug, Copy, Clone)]
355pub struct timespec {
356    pub tv_sec: __time_t,
357    pub tv_nsec: __syscall_slong_t,
358}
359#[test]
360fn bindgen_test_layout_timespec() {
361    assert_eq!(
362        ::std::mem::size_of::<timespec>(),
363        16usize,
364        concat!("Size of: ", stringify!(timespec))
365    );
366    assert_eq!(
367        ::std::mem::align_of::<timespec>(),
368        8usize,
369        concat!("Alignment of ", stringify!(timespec))
370    );
371    assert_eq!(
372        unsafe { &(*(::std::ptr::null::<timespec>())).tv_sec as *const _ as usize },
373        0usize,
374        concat!(
375            "Offset of field: ",
376            stringify!(timespec),
377            "::",
378            stringify!(tv_sec)
379        )
380    );
381    assert_eq!(
382        unsafe { &(*(::std::ptr::null::<timespec>())).tv_nsec as *const _ as usize },
383        8usize,
384        concat!(
385            "Offset of field: ",
386            stringify!(timespec),
387            "::",
388            stringify!(tv_nsec)
389        )
390    );
391}
392pub type suseconds_t = __suseconds_t;
393pub type __fd_mask = ::std::os::raw::c_long;
394#[repr(C)]
395#[derive(Debug, Copy, Clone)]
396pub struct fd_set {
397    pub __fds_bits: [__fd_mask; 16usize],
398}
399#[test]
400fn bindgen_test_layout_fd_set() {
401    assert_eq!(
402        ::std::mem::size_of::<fd_set>(),
403        128usize,
404        concat!("Size of: ", stringify!(fd_set))
405    );
406    assert_eq!(
407        ::std::mem::align_of::<fd_set>(),
408        8usize,
409        concat!("Alignment of ", stringify!(fd_set))
410    );
411    assert_eq!(
412        unsafe { &(*(::std::ptr::null::<fd_set>())).__fds_bits as *const _ as usize },
413        0usize,
414        concat!(
415            "Offset of field: ",
416            stringify!(fd_set),
417            "::",
418            stringify!(__fds_bits)
419        )
420    );
421}
422pub type fd_mask = __fd_mask;
423extern "C" {
424    pub fn select(
425        __nfds: ::std::os::raw::c_int,
426        __readfds: *mut fd_set,
427        __writefds: *mut fd_set,
428        __exceptfds: *mut fd_set,
429        __timeout: *mut timeval,
430    ) -> ::std::os::raw::c_int;
431}
432extern "C" {
433    pub fn pselect(
434        __nfds: ::std::os::raw::c_int,
435        __readfds: *mut fd_set,
436        __writefds: *mut fd_set,
437        __exceptfds: *mut fd_set,
438        __timeout: *const timespec,
439        __sigmask: *const __sigset_t,
440    ) -> ::std::os::raw::c_int;
441}
442pub type blksize_t = __blksize_t;
443pub type blkcnt_t = __blkcnt_t;
444pub type fsblkcnt_t = __fsblkcnt_t;
445pub type fsfilcnt_t = __fsfilcnt_t;
446#[repr(C)]
447#[derive(Debug, Copy, Clone)]
448pub struct __pthread_rwlock_arch_t {
449    pub __readers: ::std::os::raw::c_uint,
450    pub __writers: ::std::os::raw::c_uint,
451    pub __wrphase_futex: ::std::os::raw::c_uint,
452    pub __writers_futex: ::std::os::raw::c_uint,
453    pub __pad3: ::std::os::raw::c_uint,
454    pub __pad4: ::std::os::raw::c_uint,
455    pub __cur_writer: ::std::os::raw::c_int,
456    pub __shared: ::std::os::raw::c_int,
457    pub __rwelision: ::std::os::raw::c_schar,
458    pub __pad1: [::std::os::raw::c_uchar; 7usize],
459    pub __pad2: ::std::os::raw::c_ulong,
460    pub __flags: ::std::os::raw::c_uint,
461}
462#[test]
463fn bindgen_test_layout___pthread_rwlock_arch_t() {
464    assert_eq!(
465        ::std::mem::size_of::<__pthread_rwlock_arch_t>(),
466        56usize,
467        concat!("Size of: ", stringify!(__pthread_rwlock_arch_t))
468    );
469    assert_eq!(
470        ::std::mem::align_of::<__pthread_rwlock_arch_t>(),
471        8usize,
472        concat!("Alignment of ", stringify!(__pthread_rwlock_arch_t))
473    );
474    assert_eq!(
475        unsafe {
476            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__readers as *const _ as usize
477        },
478        0usize,
479        concat!(
480            "Offset of field: ",
481            stringify!(__pthread_rwlock_arch_t),
482            "::",
483            stringify!(__readers)
484        )
485    );
486    assert_eq!(
487        unsafe {
488            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__writers as *const _ as usize
489        },
490        4usize,
491        concat!(
492            "Offset of field: ",
493            stringify!(__pthread_rwlock_arch_t),
494            "::",
495            stringify!(__writers)
496        )
497    );
498    assert_eq!(
499        unsafe {
500            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__wrphase_futex as *const _ as usize
501        },
502        8usize,
503        concat!(
504            "Offset of field: ",
505            stringify!(__pthread_rwlock_arch_t),
506            "::",
507            stringify!(__wrphase_futex)
508        )
509    );
510    assert_eq!(
511        unsafe {
512            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__writers_futex as *const _ as usize
513        },
514        12usize,
515        concat!(
516            "Offset of field: ",
517            stringify!(__pthread_rwlock_arch_t),
518            "::",
519            stringify!(__writers_futex)
520        )
521    );
522    assert_eq!(
523        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad3 as *const _ as usize },
524        16usize,
525        concat!(
526            "Offset of field: ",
527            stringify!(__pthread_rwlock_arch_t),
528            "::",
529            stringify!(__pad3)
530        )
531    );
532    assert_eq!(
533        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad4 as *const _ as usize },
534        20usize,
535        concat!(
536            "Offset of field: ",
537            stringify!(__pthread_rwlock_arch_t),
538            "::",
539            stringify!(__pad4)
540        )
541    );
542    assert_eq!(
543        unsafe {
544            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__cur_writer as *const _ as usize
545        },
546        24usize,
547        concat!(
548            "Offset of field: ",
549            stringify!(__pthread_rwlock_arch_t),
550            "::",
551            stringify!(__cur_writer)
552        )
553    );
554    assert_eq!(
555        unsafe {
556            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__shared as *const _ as usize
557        },
558        28usize,
559        concat!(
560            "Offset of field: ",
561            stringify!(__pthread_rwlock_arch_t),
562            "::",
563            stringify!(__shared)
564        )
565    );
566    assert_eq!(
567        unsafe {
568            &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__rwelision as *const _ as usize
569        },
570        32usize,
571        concat!(
572            "Offset of field: ",
573            stringify!(__pthread_rwlock_arch_t),
574            "::",
575            stringify!(__rwelision)
576        )
577    );
578    assert_eq!(
579        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad1 as *const _ as usize },
580        33usize,
581        concat!(
582            "Offset of field: ",
583            stringify!(__pthread_rwlock_arch_t),
584            "::",
585            stringify!(__pad1)
586        )
587    );
588    assert_eq!(
589        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__pad2 as *const _ as usize },
590        40usize,
591        concat!(
592            "Offset of field: ",
593            stringify!(__pthread_rwlock_arch_t),
594            "::",
595            stringify!(__pad2)
596        )
597    );
598    assert_eq!(
599        unsafe { &(*(::std::ptr::null::<__pthread_rwlock_arch_t>())).__flags as *const _ as usize },
600        48usize,
601        concat!(
602            "Offset of field: ",
603            stringify!(__pthread_rwlock_arch_t),
604            "::",
605            stringify!(__flags)
606        )
607    );
608}
609#[repr(C)]
610#[derive(Debug, Copy, Clone)]
611pub struct __pthread_internal_list {
612    pub __prev: *mut __pthread_internal_list,
613    pub __next: *mut __pthread_internal_list,
614}
615#[test]
616fn bindgen_test_layout___pthread_internal_list() {
617    assert_eq!(
618        ::std::mem::size_of::<__pthread_internal_list>(),
619        16usize,
620        concat!("Size of: ", stringify!(__pthread_internal_list))
621    );
622    assert_eq!(
623        ::std::mem::align_of::<__pthread_internal_list>(),
624        8usize,
625        concat!("Alignment of ", stringify!(__pthread_internal_list))
626    );
627    assert_eq!(
628        unsafe { &(*(::std::ptr::null::<__pthread_internal_list>())).__prev as *const _ as usize },
629        0usize,
630        concat!(
631            "Offset of field: ",
632            stringify!(__pthread_internal_list),
633            "::",
634            stringify!(__prev)
635        )
636    );
637    assert_eq!(
638        unsafe { &(*(::std::ptr::null::<__pthread_internal_list>())).__next as *const _ as usize },
639        8usize,
640        concat!(
641            "Offset of field: ",
642            stringify!(__pthread_internal_list),
643            "::",
644            stringify!(__next)
645        )
646    );
647}
648pub type __pthread_list_t = __pthread_internal_list;
649#[repr(C)]
650#[derive(Debug, Copy, Clone)]
651pub struct __pthread_mutex_s {
652    pub __lock: ::std::os::raw::c_int,
653    pub __count: ::std::os::raw::c_uint,
654    pub __owner: ::std::os::raw::c_int,
655    pub __nusers: ::std::os::raw::c_uint,
656    pub __kind: ::std::os::raw::c_int,
657    pub __spins: ::std::os::raw::c_short,
658    pub __elision: ::std::os::raw::c_short,
659    pub __list: __pthread_list_t,
660}
661#[test]
662fn bindgen_test_layout___pthread_mutex_s() {
663    assert_eq!(
664        ::std::mem::size_of::<__pthread_mutex_s>(),
665        40usize,
666        concat!("Size of: ", stringify!(__pthread_mutex_s))
667    );
668    assert_eq!(
669        ::std::mem::align_of::<__pthread_mutex_s>(),
670        8usize,
671        concat!("Alignment of ", stringify!(__pthread_mutex_s))
672    );
673    assert_eq!(
674        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__lock as *const _ as usize },
675        0usize,
676        concat!(
677            "Offset of field: ",
678            stringify!(__pthread_mutex_s),
679            "::",
680            stringify!(__lock)
681        )
682    );
683    assert_eq!(
684        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__count as *const _ as usize },
685        4usize,
686        concat!(
687            "Offset of field: ",
688            stringify!(__pthread_mutex_s),
689            "::",
690            stringify!(__count)
691        )
692    );
693    assert_eq!(
694        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__owner as *const _ as usize },
695        8usize,
696        concat!(
697            "Offset of field: ",
698            stringify!(__pthread_mutex_s),
699            "::",
700            stringify!(__owner)
701        )
702    );
703    assert_eq!(
704        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__nusers as *const _ as usize },
705        12usize,
706        concat!(
707            "Offset of field: ",
708            stringify!(__pthread_mutex_s),
709            "::",
710            stringify!(__nusers)
711        )
712    );
713    assert_eq!(
714        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__kind as *const _ as usize },
715        16usize,
716        concat!(
717            "Offset of field: ",
718            stringify!(__pthread_mutex_s),
719            "::",
720            stringify!(__kind)
721        )
722    );
723    assert_eq!(
724        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__spins as *const _ as usize },
725        20usize,
726        concat!(
727            "Offset of field: ",
728            stringify!(__pthread_mutex_s),
729            "::",
730            stringify!(__spins)
731        )
732    );
733    assert_eq!(
734        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__elision as *const _ as usize },
735        22usize,
736        concat!(
737            "Offset of field: ",
738            stringify!(__pthread_mutex_s),
739            "::",
740            stringify!(__elision)
741        )
742    );
743    assert_eq!(
744        unsafe { &(*(::std::ptr::null::<__pthread_mutex_s>())).__list as *const _ as usize },
745        24usize,
746        concat!(
747            "Offset of field: ",
748            stringify!(__pthread_mutex_s),
749            "::",
750            stringify!(__list)
751        )
752    );
753}
754#[repr(C)]
755#[derive(Copy, Clone)]
756pub struct __pthread_cond_s {
757    pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
758    pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
759    pub __g_refs: [::std::os::raw::c_uint; 2usize],
760    pub __g_size: [::std::os::raw::c_uint; 2usize],
761    pub __g1_orig_size: ::std::os::raw::c_uint,
762    pub __wrefs: ::std::os::raw::c_uint,
763    pub __g_signals: [::std::os::raw::c_uint; 2usize],
764}
765#[repr(C)]
766#[derive(Copy, Clone)]
767pub union __pthread_cond_s__bindgen_ty_1 {
768    pub __wseq: ::std::os::raw::c_ulonglong,
769    pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
770    _bindgen_union_align: u64,
771}
772#[repr(C)]
773#[derive(Debug, Copy, Clone)]
774pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
775    pub __low: ::std::os::raw::c_uint,
776    pub __high: ::std::os::raw::c_uint,
777}
778#[test]
779fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1__bindgen_ty_1() {
780    assert_eq!(
781        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(),
782        8usize,
783        concat!(
784            "Size of: ",
785            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1)
786        )
787    );
788    assert_eq!(
789        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>(),
790        4usize,
791        concat!(
792            "Alignment of ",
793            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1)
794        )
795    );
796    assert_eq!(
797        unsafe {
798            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>())).__low
799                as *const _ as usize
800        },
801        0usize,
802        concat!(
803            "Offset of field: ",
804            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1),
805            "::",
806            stringify!(__low)
807        )
808    );
809    assert_eq!(
810        unsafe {
811            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1__bindgen_ty_1>())).__high
812                as *const _ as usize
813        },
814        4usize,
815        concat!(
816            "Offset of field: ",
817            stringify!(__pthread_cond_s__bindgen_ty_1__bindgen_ty_1),
818            "::",
819            stringify!(__high)
820        )
821    );
822}
823#[test]
824fn bindgen_test_layout___pthread_cond_s__bindgen_ty_1() {
825    assert_eq!(
826        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_1>(),
827        8usize,
828        concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_1))
829    );
830    assert_eq!(
831        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_1>(),
832        8usize,
833        concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_1))
834    );
835    assert_eq!(
836        unsafe {
837            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1>())).__wseq as *const _ as usize
838        },
839        0usize,
840        concat!(
841            "Offset of field: ",
842            stringify!(__pthread_cond_s__bindgen_ty_1),
843            "::",
844            stringify!(__wseq)
845        )
846    );
847    assert_eq!(
848        unsafe {
849            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_1>())).__wseq32 as *const _ as usize
850        },
851        0usize,
852        concat!(
853            "Offset of field: ",
854            stringify!(__pthread_cond_s__bindgen_ty_1),
855            "::",
856            stringify!(__wseq32)
857        )
858    );
859}
860#[repr(C)]
861#[derive(Copy, Clone)]
862pub union __pthread_cond_s__bindgen_ty_2 {
863    pub __g1_start: ::std::os::raw::c_ulonglong,
864    pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
865    _bindgen_union_align: u64,
866}
867#[repr(C)]
868#[derive(Debug, Copy, Clone)]
869pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
870    pub __low: ::std::os::raw::c_uint,
871    pub __high: ::std::os::raw::c_uint,
872}
873#[test]
874fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2__bindgen_ty_1() {
875    assert_eq!(
876        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(),
877        8usize,
878        concat!(
879            "Size of: ",
880            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1)
881        )
882    );
883    assert_eq!(
884        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>(),
885        4usize,
886        concat!(
887            "Alignment of ",
888            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1)
889        )
890    );
891    assert_eq!(
892        unsafe {
893            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>())).__low
894                as *const _ as usize
895        },
896        0usize,
897        concat!(
898            "Offset of field: ",
899            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1),
900            "::",
901            stringify!(__low)
902        )
903    );
904    assert_eq!(
905        unsafe {
906            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2__bindgen_ty_1>())).__high
907                as *const _ as usize
908        },
909        4usize,
910        concat!(
911            "Offset of field: ",
912            stringify!(__pthread_cond_s__bindgen_ty_2__bindgen_ty_1),
913            "::",
914            stringify!(__high)
915        )
916    );
917}
918#[test]
919fn bindgen_test_layout___pthread_cond_s__bindgen_ty_2() {
920    assert_eq!(
921        ::std::mem::size_of::<__pthread_cond_s__bindgen_ty_2>(),
922        8usize,
923        concat!("Size of: ", stringify!(__pthread_cond_s__bindgen_ty_2))
924    );
925    assert_eq!(
926        ::std::mem::align_of::<__pthread_cond_s__bindgen_ty_2>(),
927        8usize,
928        concat!("Alignment of ", stringify!(__pthread_cond_s__bindgen_ty_2))
929    );
930    assert_eq!(
931        unsafe {
932            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2>())).__g1_start as *const _
933                as usize
934        },
935        0usize,
936        concat!(
937            "Offset of field: ",
938            stringify!(__pthread_cond_s__bindgen_ty_2),
939            "::",
940            stringify!(__g1_start)
941        )
942    );
943    assert_eq!(
944        unsafe {
945            &(*(::std::ptr::null::<__pthread_cond_s__bindgen_ty_2>())).__g1_start32 as *const _
946                as usize
947        },
948        0usize,
949        concat!(
950            "Offset of field: ",
951            stringify!(__pthread_cond_s__bindgen_ty_2),
952            "::",
953            stringify!(__g1_start32)
954        )
955    );
956}
957#[test]
958fn bindgen_test_layout___pthread_cond_s() {
959    assert_eq!(
960        ::std::mem::size_of::<__pthread_cond_s>(),
961        48usize,
962        concat!("Size of: ", stringify!(__pthread_cond_s))
963    );
964    assert_eq!(
965        ::std::mem::align_of::<__pthread_cond_s>(),
966        8usize,
967        concat!("Alignment of ", stringify!(__pthread_cond_s))
968    );
969    assert_eq!(
970        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_refs as *const _ as usize },
971        16usize,
972        concat!(
973            "Offset of field: ",
974            stringify!(__pthread_cond_s),
975            "::",
976            stringify!(__g_refs)
977        )
978    );
979    assert_eq!(
980        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_size as *const _ as usize },
981        24usize,
982        concat!(
983            "Offset of field: ",
984            stringify!(__pthread_cond_s),
985            "::",
986            stringify!(__g_size)
987        )
988    );
989    assert_eq!(
990        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g1_orig_size as *const _ as usize },
991        32usize,
992        concat!(
993            "Offset of field: ",
994            stringify!(__pthread_cond_s),
995            "::",
996            stringify!(__g1_orig_size)
997        )
998    );
999    assert_eq!(
1000        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__wrefs as *const _ as usize },
1001        36usize,
1002        concat!(
1003            "Offset of field: ",
1004            stringify!(__pthread_cond_s),
1005            "::",
1006            stringify!(__wrefs)
1007        )
1008    );
1009    assert_eq!(
1010        unsafe { &(*(::std::ptr::null::<__pthread_cond_s>())).__g_signals as *const _ as usize },
1011        40usize,
1012        concat!(
1013            "Offset of field: ",
1014            stringify!(__pthread_cond_s),
1015            "::",
1016            stringify!(__g_signals)
1017        )
1018    );
1019}
1020pub type pthread_t = ::std::os::raw::c_ulong;
1021#[repr(C)]
1022#[derive(Copy, Clone)]
1023pub union pthread_mutexattr_t {
1024    pub __size: [::std::os::raw::c_char; 4usize],
1025    pub __align: ::std::os::raw::c_int,
1026    _bindgen_union_align: u32,
1027}
1028#[test]
1029fn bindgen_test_layout_pthread_mutexattr_t() {
1030    assert_eq!(
1031        ::std::mem::size_of::<pthread_mutexattr_t>(),
1032        4usize,
1033        concat!("Size of: ", stringify!(pthread_mutexattr_t))
1034    );
1035    assert_eq!(
1036        ::std::mem::align_of::<pthread_mutexattr_t>(),
1037        4usize,
1038        concat!("Alignment of ", stringify!(pthread_mutexattr_t))
1039    );
1040    assert_eq!(
1041        unsafe { &(*(::std::ptr::null::<pthread_mutexattr_t>())).__size as *const _ as usize },
1042        0usize,
1043        concat!(
1044            "Offset of field: ",
1045            stringify!(pthread_mutexattr_t),
1046            "::",
1047            stringify!(__size)
1048        )
1049    );
1050    assert_eq!(
1051        unsafe { &(*(::std::ptr::null::<pthread_mutexattr_t>())).__align as *const _ as usize },
1052        0usize,
1053        concat!(
1054            "Offset of field: ",
1055            stringify!(pthread_mutexattr_t),
1056            "::",
1057            stringify!(__align)
1058        )
1059    );
1060}
1061#[repr(C)]
1062#[derive(Copy, Clone)]
1063pub union pthread_condattr_t {
1064    pub __size: [::std::os::raw::c_char; 4usize],
1065    pub __align: ::std::os::raw::c_int,
1066    _bindgen_union_align: u32,
1067}
1068#[test]
1069fn bindgen_test_layout_pthread_condattr_t() {
1070    assert_eq!(
1071        ::std::mem::size_of::<pthread_condattr_t>(),
1072        4usize,
1073        concat!("Size of: ", stringify!(pthread_condattr_t))
1074    );
1075    assert_eq!(
1076        ::std::mem::align_of::<pthread_condattr_t>(),
1077        4usize,
1078        concat!("Alignment of ", stringify!(pthread_condattr_t))
1079    );
1080    assert_eq!(
1081        unsafe { &(*(::std::ptr::null::<pthread_condattr_t>())).__size as *const _ as usize },
1082        0usize,
1083        concat!(
1084            "Offset of field: ",
1085            stringify!(pthread_condattr_t),
1086            "::",
1087            stringify!(__size)
1088        )
1089    );
1090    assert_eq!(
1091        unsafe { &(*(::std::ptr::null::<pthread_condattr_t>())).__align as *const _ as usize },
1092        0usize,
1093        concat!(
1094            "Offset of field: ",
1095            stringify!(pthread_condattr_t),
1096            "::",
1097            stringify!(__align)
1098        )
1099    );
1100}
1101pub type pthread_key_t = ::std::os::raw::c_uint;
1102pub type pthread_once_t = ::std::os::raw::c_int;
1103#[repr(C)]
1104#[derive(Copy, Clone)]
1105pub union pthread_attr_t {
1106    pub __size: [::std::os::raw::c_char; 56usize],
1107    pub __align: ::std::os::raw::c_long,
1108    _bindgen_union_align: [u64; 7usize],
1109}
1110#[test]
1111fn bindgen_test_layout_pthread_attr_t() {
1112    assert_eq!(
1113        ::std::mem::size_of::<pthread_attr_t>(),
1114        56usize,
1115        concat!("Size of: ", stringify!(pthread_attr_t))
1116    );
1117    assert_eq!(
1118        ::std::mem::align_of::<pthread_attr_t>(),
1119        8usize,
1120        concat!("Alignment of ", stringify!(pthread_attr_t))
1121    );
1122    assert_eq!(
1123        unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__size as *const _ as usize },
1124        0usize,
1125        concat!(
1126            "Offset of field: ",
1127            stringify!(pthread_attr_t),
1128            "::",
1129            stringify!(__size)
1130        )
1131    );
1132    assert_eq!(
1133        unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__align as *const _ as usize },
1134        0usize,
1135        concat!(
1136            "Offset of field: ",
1137            stringify!(pthread_attr_t),
1138            "::",
1139            stringify!(__align)
1140        )
1141    );
1142}
1143#[repr(C)]
1144#[derive(Copy, Clone)]
1145pub union pthread_mutex_t {
1146    pub __data: __pthread_mutex_s,
1147    pub __size: [::std::os::raw::c_char; 40usize],
1148    pub __align: ::std::os::raw::c_long,
1149    _bindgen_union_align: [u64; 5usize],
1150}
1151#[test]
1152fn bindgen_test_layout_pthread_mutex_t() {
1153    assert_eq!(
1154        ::std::mem::size_of::<pthread_mutex_t>(),
1155        40usize,
1156        concat!("Size of: ", stringify!(pthread_mutex_t))
1157    );
1158    assert_eq!(
1159        ::std::mem::align_of::<pthread_mutex_t>(),
1160        8usize,
1161        concat!("Alignment of ", stringify!(pthread_mutex_t))
1162    );
1163    assert_eq!(
1164        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__data as *const _ as usize },
1165        0usize,
1166        concat!(
1167            "Offset of field: ",
1168            stringify!(pthread_mutex_t),
1169            "::",
1170            stringify!(__data)
1171        )
1172    );
1173    assert_eq!(
1174        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__size as *const _ as usize },
1175        0usize,
1176        concat!(
1177            "Offset of field: ",
1178            stringify!(pthread_mutex_t),
1179            "::",
1180            stringify!(__size)
1181        )
1182    );
1183    assert_eq!(
1184        unsafe { &(*(::std::ptr::null::<pthread_mutex_t>())).__align as *const _ as usize },
1185        0usize,
1186        concat!(
1187            "Offset of field: ",
1188            stringify!(pthread_mutex_t),
1189            "::",
1190            stringify!(__align)
1191        )
1192    );
1193}
1194#[repr(C)]
1195#[derive(Copy, Clone)]
1196pub union pthread_cond_t {
1197    pub __data: __pthread_cond_s,
1198    pub __size: [::std::os::raw::c_char; 48usize],
1199    pub __align: ::std::os::raw::c_longlong,
1200    _bindgen_union_align: [u64; 6usize],
1201}
1202#[test]
1203fn bindgen_test_layout_pthread_cond_t() {
1204    assert_eq!(
1205        ::std::mem::size_of::<pthread_cond_t>(),
1206        48usize,
1207        concat!("Size of: ", stringify!(pthread_cond_t))
1208    );
1209    assert_eq!(
1210        ::std::mem::align_of::<pthread_cond_t>(),
1211        8usize,
1212        concat!("Alignment of ", stringify!(pthread_cond_t))
1213    );
1214    assert_eq!(
1215        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__data as *const _ as usize },
1216        0usize,
1217        concat!(
1218            "Offset of field: ",
1219            stringify!(pthread_cond_t),
1220            "::",
1221            stringify!(__data)
1222        )
1223    );
1224    assert_eq!(
1225        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__size as *const _ as usize },
1226        0usize,
1227        concat!(
1228            "Offset of field: ",
1229            stringify!(pthread_cond_t),
1230            "::",
1231            stringify!(__size)
1232        )
1233    );
1234    assert_eq!(
1235        unsafe { &(*(::std::ptr::null::<pthread_cond_t>())).__align as *const _ as usize },
1236        0usize,
1237        concat!(
1238            "Offset of field: ",
1239            stringify!(pthread_cond_t),
1240            "::",
1241            stringify!(__align)
1242        )
1243    );
1244}
1245#[repr(C)]
1246#[derive(Copy, Clone)]
1247pub union pthread_rwlock_t {
1248    pub __data: __pthread_rwlock_arch_t,
1249    pub __size: [::std::os::raw::c_char; 56usize],
1250    pub __align: ::std::os::raw::c_long,
1251    _bindgen_union_align: [u64; 7usize],
1252}
1253#[test]
1254fn bindgen_test_layout_pthread_rwlock_t() {
1255    assert_eq!(
1256        ::std::mem::size_of::<pthread_rwlock_t>(),
1257        56usize,
1258        concat!("Size of: ", stringify!(pthread_rwlock_t))
1259    );
1260    assert_eq!(
1261        ::std::mem::align_of::<pthread_rwlock_t>(),
1262        8usize,
1263        concat!("Alignment of ", stringify!(pthread_rwlock_t))
1264    );
1265    assert_eq!(
1266        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__data as *const _ as usize },
1267        0usize,
1268        concat!(
1269            "Offset of field: ",
1270            stringify!(pthread_rwlock_t),
1271            "::",
1272            stringify!(__data)
1273        )
1274    );
1275    assert_eq!(
1276        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__size as *const _ as usize },
1277        0usize,
1278        concat!(
1279            "Offset of field: ",
1280            stringify!(pthread_rwlock_t),
1281            "::",
1282            stringify!(__size)
1283        )
1284    );
1285    assert_eq!(
1286        unsafe { &(*(::std::ptr::null::<pthread_rwlock_t>())).__align as *const _ as usize },
1287        0usize,
1288        concat!(
1289            "Offset of field: ",
1290            stringify!(pthread_rwlock_t),
1291            "::",
1292            stringify!(__align)
1293        )
1294    );
1295}
1296#[repr(C)]
1297#[derive(Copy, Clone)]
1298pub union pthread_rwlockattr_t {
1299    pub __size: [::std::os::raw::c_char; 8usize],
1300    pub __align: ::std::os::raw::c_long,
1301    _bindgen_union_align: u64,
1302}
1303#[test]
1304fn bindgen_test_layout_pthread_rwlockattr_t() {
1305    assert_eq!(
1306        ::std::mem::size_of::<pthread_rwlockattr_t>(),
1307        8usize,
1308        concat!("Size of: ", stringify!(pthread_rwlockattr_t))
1309    );
1310    assert_eq!(
1311        ::std::mem::align_of::<pthread_rwlockattr_t>(),
1312        8usize,
1313        concat!("Alignment of ", stringify!(pthread_rwlockattr_t))
1314    );
1315    assert_eq!(
1316        unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__size as *const _ as usize },
1317        0usize,
1318        concat!(
1319            "Offset of field: ",
1320            stringify!(pthread_rwlockattr_t),
1321            "::",
1322            stringify!(__size)
1323        )
1324    );
1325    assert_eq!(
1326        unsafe { &(*(::std::ptr::null::<pthread_rwlockattr_t>())).__align as *const _ as usize },
1327        0usize,
1328        concat!(
1329            "Offset of field: ",
1330            stringify!(pthread_rwlockattr_t),
1331            "::",
1332            stringify!(__align)
1333        )
1334    );
1335}
1336pub type pthread_spinlock_t = ::std::os::raw::c_int;
1337#[repr(C)]
1338#[derive(Copy, Clone)]
1339pub union pthread_barrier_t {
1340    pub __size: [::std::os::raw::c_char; 32usize],
1341    pub __align: ::std::os::raw::c_long,
1342    _bindgen_union_align: [u64; 4usize],
1343}
1344#[test]
1345fn bindgen_test_layout_pthread_barrier_t() {
1346    assert_eq!(
1347        ::std::mem::size_of::<pthread_barrier_t>(),
1348        32usize,
1349        concat!("Size of: ", stringify!(pthread_barrier_t))
1350    );
1351    assert_eq!(
1352        ::std::mem::align_of::<pthread_barrier_t>(),
1353        8usize,
1354        concat!("Alignment of ", stringify!(pthread_barrier_t))
1355    );
1356    assert_eq!(
1357        unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__size as *const _ as usize },
1358        0usize,
1359        concat!(
1360            "Offset of field: ",
1361            stringify!(pthread_barrier_t),
1362            "::",
1363            stringify!(__size)
1364        )
1365    );
1366    assert_eq!(
1367        unsafe { &(*(::std::ptr::null::<pthread_barrier_t>())).__align as *const _ as usize },
1368        0usize,
1369        concat!(
1370            "Offset of field: ",
1371            stringify!(pthread_barrier_t),
1372            "::",
1373            stringify!(__align)
1374        )
1375    );
1376}
1377#[repr(C)]
1378#[derive(Copy, Clone)]
1379pub union pthread_barrierattr_t {
1380    pub __size: [::std::os::raw::c_char; 4usize],
1381    pub __align: ::std::os::raw::c_int,
1382    _bindgen_union_align: u32,
1383}
1384#[test]
1385fn bindgen_test_layout_pthread_barrierattr_t() {
1386    assert_eq!(
1387        ::std::mem::size_of::<pthread_barrierattr_t>(),
1388        4usize,
1389        concat!("Size of: ", stringify!(pthread_barrierattr_t))
1390    );
1391    assert_eq!(
1392        ::std::mem::align_of::<pthread_barrierattr_t>(),
1393        4usize,
1394        concat!("Alignment of ", stringify!(pthread_barrierattr_t))
1395    );
1396    assert_eq!(
1397        unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__size as *const _ as usize },
1398        0usize,
1399        concat!(
1400            "Offset of field: ",
1401            stringify!(pthread_barrierattr_t),
1402            "::",
1403            stringify!(__size)
1404        )
1405    );
1406    assert_eq!(
1407        unsafe { &(*(::std::ptr::null::<pthread_barrierattr_t>())).__align as *const _ as usize },
1408        0usize,
1409        concat!(
1410            "Offset of field: ",
1411            stringify!(pthread_barrierattr_t),
1412            "::",
1413            stringify!(__align)
1414        )
1415    );
1416}
1417#[repr(C)]
1418#[derive(Debug, Copy, Clone)]
1419pub struct sbc_struct {
1420    pub flags: ::std::os::raw::c_ulong,
1421    pub frequency: u8,
1422    pub blocks: u8,
1423    pub subbands: u8,
1424    pub mode: u8,
1425    pub allocation: u8,
1426    pub bitpool: u8,
1427    pub endian: u8,
1428    pub priv_: *mut ::std::os::raw::c_void,
1429    pub priv_alloc_base: *mut ::std::os::raw::c_void,
1430}
1431#[test]
1432fn bindgen_test_layout_sbc_struct() {
1433    assert_eq!(
1434        ::std::mem::size_of::<sbc_struct>(),
1435        32usize,
1436        concat!("Size of: ", stringify!(sbc_struct))
1437    );
1438    assert_eq!(
1439        ::std::mem::align_of::<sbc_struct>(),
1440        8usize,
1441        concat!("Alignment of ", stringify!(sbc_struct))
1442    );
1443    assert_eq!(
1444        unsafe { &(*(::std::ptr::null::<sbc_struct>())).flags as *const _ as usize },
1445        0usize,
1446        concat!(
1447            "Offset of field: ",
1448            stringify!(sbc_struct),
1449            "::",
1450            stringify!(flags)
1451        )
1452    );
1453    assert_eq!(
1454        unsafe { &(*(::std::ptr::null::<sbc_struct>())).frequency as *const _ as usize },
1455        8usize,
1456        concat!(
1457            "Offset of field: ",
1458            stringify!(sbc_struct),
1459            "::",
1460            stringify!(frequency)
1461        )
1462    );
1463    assert_eq!(
1464        unsafe { &(*(::std::ptr::null::<sbc_struct>())).blocks as *const _ as usize },
1465        9usize,
1466        concat!(
1467            "Offset of field: ",
1468            stringify!(sbc_struct),
1469            "::",
1470            stringify!(blocks)
1471        )
1472    );
1473    assert_eq!(
1474        unsafe { &(*(::std::ptr::null::<sbc_struct>())).subbands as *const _ as usize },
1475        10usize,
1476        concat!(
1477            "Offset of field: ",
1478            stringify!(sbc_struct),
1479            "::",
1480            stringify!(subbands)
1481        )
1482    );
1483    assert_eq!(
1484        unsafe { &(*(::std::ptr::null::<sbc_struct>())).mode as *const _ as usize },
1485        11usize,
1486        concat!(
1487            "Offset of field: ",
1488            stringify!(sbc_struct),
1489            "::",
1490            stringify!(mode)
1491        )
1492    );
1493    assert_eq!(
1494        unsafe { &(*(::std::ptr::null::<sbc_struct>())).allocation as *const _ as usize },
1495        12usize,
1496        concat!(
1497            "Offset of field: ",
1498            stringify!(sbc_struct),
1499            "::",
1500            stringify!(allocation)
1501        )
1502    );
1503    assert_eq!(
1504        unsafe { &(*(::std::ptr::null::<sbc_struct>())).bitpool as *const _ as usize },
1505        13usize,
1506        concat!(
1507            "Offset of field: ",
1508            stringify!(sbc_struct),
1509            "::",
1510            stringify!(bitpool)
1511        )
1512    );
1513    assert_eq!(
1514        unsafe { &(*(::std::ptr::null::<sbc_struct>())).endian as *const _ as usize },
1515        14usize,
1516        concat!(
1517            "Offset of field: ",
1518            stringify!(sbc_struct),
1519            "::",
1520            stringify!(endian)
1521        )
1522    );
1523    assert_eq!(
1524        unsafe { &(*(::std::ptr::null::<sbc_struct>())).priv_ as *const _ as usize },
1525        16usize,
1526        concat!(
1527            "Offset of field: ",
1528            stringify!(sbc_struct),
1529            "::",
1530            stringify!(priv_)
1531        )
1532    );
1533    assert_eq!(
1534        unsafe { &(*(::std::ptr::null::<sbc_struct>())).priv_alloc_base as *const _ as usize },
1535        24usize,
1536        concat!(
1537            "Offset of field: ",
1538            stringify!(sbc_struct),
1539            "::",
1540            stringify!(priv_alloc_base)
1541        )
1542    );
1543}
1544pub type sbc_t = sbc_struct;
1545extern "C" {
1546    pub fn sbc_init(sbc: *mut sbc_t, flags: ::std::os::raw::c_ulong) -> ::std::os::raw::c_int;
1547}
1548extern "C" {
1549    pub fn sbc_reinit(sbc: *mut sbc_t, flags: ::std::os::raw::c_ulong) -> ::std::os::raw::c_int;
1550}
1551extern "C" {
1552    pub fn sbc_init_msbc(sbc: *mut sbc_t, flags: ::std::os::raw::c_ulong) -> ::std::os::raw::c_int;
1553}
1554extern "C" {
1555    pub fn sbc_init_a2dp(
1556        sbc: *mut sbc_t,
1557        flags: ::std::os::raw::c_ulong,
1558        conf: *const ::std::os::raw::c_void,
1559        conf_len: usize,
1560    ) -> ::std::os::raw::c_int;
1561}
1562extern "C" {
1563    pub fn sbc_reinit_a2dp(
1564        sbc: *mut sbc_t,
1565        flags: ::std::os::raw::c_ulong,
1566        conf: *const ::std::os::raw::c_void,
1567        conf_len: usize,
1568    ) -> ::std::os::raw::c_int;
1569}
1570extern "C" {
1571    pub fn sbc_parse(
1572        sbc: *mut sbc_t,
1573        input: *const ::std::os::raw::c_void,
1574        input_len: usize,
1575    ) -> isize;
1576}
1577extern "C" {
1578    pub fn sbc_decode(
1579        sbc: *mut sbc_t,
1580        input: *const ::std::os::raw::c_void,
1581        input_len: usize,
1582        output: *mut ::std::os::raw::c_void,
1583        output_len: usize,
1584        written: *mut usize,
1585    ) -> isize;
1586}
1587extern "C" {
1588    pub fn sbc_encode(
1589        sbc: *mut sbc_t,
1590        input: *const ::std::os::raw::c_void,
1591        input_len: usize,
1592        output: *mut ::std::os::raw::c_void,
1593        output_len: usize,
1594        written: *mut isize,
1595    ) -> isize;
1596}
1597extern "C" {
1598    pub fn sbc_get_frame_length(sbc: *mut sbc_t) -> usize;
1599}
1600extern "C" {
1601    pub fn sbc_get_frame_duration(sbc: *mut sbc_t) -> ::std::os::raw::c_uint;
1602}
1603extern "C" {
1604    pub fn sbc_get_codesize(sbc: *mut sbc_t) -> usize;
1605}
1606extern "C" {
1607    pub fn sbc_get_implementation_info(sbc: *mut sbc_t) -> *const ::std::os::raw::c_char;
1608}
1609extern "C" {
1610    pub fn sbc_finish(sbc: *mut sbc_t);
1611}