1 pub type boolean_t
= ::c_uint
;
2 pub type mcontext_t
= *mut __darwin_mcontext64
;
5 pub struct ucontext_t
{
6 pub uc_onstack
: ::c_int
,
7 pub uc_sigmask
: ::sigset_t
,
8 pub uc_stack
: ::stack_t
,
9 pub uc_link
: *mut ::ucontext_t
,
11 pub uc_mcontext
: mcontext_t
,
14 pub struct __darwin_mcontext64
{
15 pub __es
: __darwin_x86_exception_state64
,
16 pub __ss
: __darwin_x86_thread_state64
,
17 pub __fs
: __darwin_x86_float_state64
,
20 pub struct __darwin_x86_exception_state64
{
24 pub __faultvaddr
: u64,
27 pub struct __darwin_x86_thread_state64
{
51 pub struct __darwin_x86_float_state64
{
52 pub __fpu_reserved
: [::c_int
; 2],
65 pub __fpu_mxcsrmask
: u32,
66 pub __fpu_stmm0
: __darwin_mmst_reg
,
67 pub __fpu_stmm1
: __darwin_mmst_reg
,
68 pub __fpu_stmm2
: __darwin_mmst_reg
,
69 pub __fpu_stmm3
: __darwin_mmst_reg
,
70 pub __fpu_stmm4
: __darwin_mmst_reg
,
71 pub __fpu_stmm5
: __darwin_mmst_reg
,
72 pub __fpu_stmm6
: __darwin_mmst_reg
,
73 pub __fpu_stmm7
: __darwin_mmst_reg
,
74 pub __fpu_xmm0
: __darwin_xmm_reg
,
75 pub __fpu_xmm1
: __darwin_xmm_reg
,
76 pub __fpu_xmm2
: __darwin_xmm_reg
,
77 pub __fpu_xmm3
: __darwin_xmm_reg
,
78 pub __fpu_xmm4
: __darwin_xmm_reg
,
79 pub __fpu_xmm5
: __darwin_xmm_reg
,
80 pub __fpu_xmm6
: __darwin_xmm_reg
,
81 pub __fpu_xmm7
: __darwin_xmm_reg
,
82 pub __fpu_xmm8
: __darwin_xmm_reg
,
83 pub __fpu_xmm9
: __darwin_xmm_reg
,
84 pub __fpu_xmm10
: __darwin_xmm_reg
,
85 pub __fpu_xmm11
: __darwin_xmm_reg
,
86 pub __fpu_xmm12
: __darwin_xmm_reg
,
87 pub __fpu_xmm13
: __darwin_xmm_reg
,
88 pub __fpu_xmm14
: __darwin_xmm_reg
,
89 pub __fpu_xmm15
: __darwin_xmm_reg
,
90 // this field is actually [u8; 96], but defining it with a bigger type
91 // allows us to auto-implement traits for it since the length of the
92 // array is less than 32
93 __fpu_rsrv4
: [u32; 24],
94 pub __fpu_reserved1
: ::c_int
,
97 pub struct __darwin_mmst_reg
{
98 pub __mmst_reg
: [::c_char
; 10],
99 pub __mmst_rsrv
: [::c_char
; 6],
102 pub struct __darwin_xmm_reg
{
103 pub __xmm_reg
: [::c_char
; 16],
106 pub struct malloc_introspection_t
{
107 _private
: [::uintptr_t
; 16], // FIXME: keeping private for now
110 pub struct malloc_zone_t
{
111 _reserved1
: *mut ::c_void
,
112 _reserved2
: *mut ::c_void
,
113 pub size
: ::Option
<unsafe extern "C" fn(
114 zone
: *mut malloc_zone_t
,
115 ptr
: *const ::c_void
,
117 pub malloc
: ::Option
<unsafe extern "C" fn(
118 zone
: *mut malloc_zone_t
,
121 pub calloc
: ::Option
<unsafe extern "C" fn(
122 zone
: *mut malloc_zone_t
,
126 pub valloc
: ::Option
<unsafe extern "C" fn(
127 zone
: *mut malloc_zone_t
,
130 pub free
: ::Option
<unsafe extern "C" fn(
131 zone
: *mut malloc_zone_t
,
134 pub realloc
: ::Option
<unsafe extern "C" fn(
135 zone
: *mut malloc_zone_t
,
139 pub destroy
: ::Option
<unsafe extern "C" fn(zone
: *mut malloc_zone_t
)>,
140 pub zone_name
: *const ::c_char
,
141 pub batch_malloc
: ::Option
<unsafe extern "C" fn(
142 zone
: *mut malloc_zone_t
,
144 results
: *mut *mut ::c_void
,
145 num_requested
: ::c_uint
,
147 pub batch_free
: ::Option
<unsafe extern "C" fn(
148 zone
: *mut malloc_zone_t
,
149 to_be_freed
: *mut *mut ::c_void
,
150 num_to_be_freed
: ::c_uint
,
152 pub introspect
: *mut malloc_introspection_t
,
153 pub version
: ::c_uint
,
154 pub memalign
: ::Option
<unsafe extern "C" fn(
155 zone
: *mut malloc_zone_t
,
159 pub free_definite_size
: ::Option
<unsafe extern "C" fn(
160 zone
: *mut malloc_zone_t
,
164 pub pressure_relief
: ::Option
<unsafe extern "C" fn(
165 zone
: *mut malloc_zone_t
,
168 pub claimed_address
: ::Option
<unsafe extern "C" fn(
169 zone
: *mut malloc_zone_t
,
176 if #[cfg(libc_align)] {
178 pub use self::align
::*;