1 macro_rules
! expand_align
{
4 pub struct sem_t
{ // FIXME
5 #[cfg(target_pointer_width = "32")]
6 __size
: [::c_char
; 16],
7 #[cfg(target_pointer_width = "64")]
8 __size
: [::c_char
; 32],
9 __align
: [::c_long
; 0],
12 pub struct pthread_mutex_t
{ // FIXME
13 #[cfg(any(target_arch = "mips",
15 target_arch
= "powerpc"))]
16 __align
: [::c_long
; 0],
17 #[cfg(not(any(target_arch = "mips",
19 target_arch
= "powerpc")))]
20 __align
: [::c_longlong
; 0],
21 size
: [u8; ::__SIZEOF_PTHREAD_MUTEX_T
],
24 pub struct pthread_mutexattr_t
{ // FIXME
25 #[cfg(any(target_arch = "x86_64", target_arch = "powerpc64",
26 target_arch
= "mips64", target_arch
= "s390x",
27 target_arch
= "sparc64"))]
28 __align
: [::c_int
; 0],
29 #[cfg(not(any(target_arch = "x86_64", target_arch = "powerpc64",
30 target_arch
= "mips64", target_arch
= "s390x",
31 target_arch
= "sparc64")))]
32 __align
: [::c_long
; 0],
33 size
: [u8; ::__SIZEOF_PTHREAD_MUTEXATTR_T
],
36 pub struct pthread_cond_t
{ // FIXME
37 __align
: [::c_longlong
; 0],
38 size
: [u8; ::__SIZEOF_PTHREAD_COND_T
],
41 pub struct pthread_condattr_t
{ // FIXME
42 __align
: [::c_int
; 0],
43 size
: [u8; ::__SIZEOF_PTHREAD_CONDATTR_T
],
46 pub struct pthread_rwlock_t
{ // FIXME
47 #[cfg(any(target_arch = "mips",
49 target_arch
= "powerpc"))]
50 __align
: [::c_long
; 0],
51 #[cfg(not(any(target_arch = "mips",
53 target_arch
= "powerpc")))]
54 __align
: [::c_longlong
; 0],
55 size
: [u8; ::__SIZEOF_PTHREAD_RWLOCK_T
],