@@ -102,6 +102,74 @@ s! {
102102 pub struct __darwin_xmm_reg {
103103 pub __xmm_reg: [ :: c_char; 16 ] ,
104104 }
105+
106+ pub struct malloc_introspection_t {
107+ _private: [ :: uintptr_t; 16 ] , // FIXME: keeping private for now
108+ }
109+
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,
116+ ) -> :: size_t>,
117+ pub malloc: Option <unsafe extern "C" fn (
118+ zone: * mut malloc_zone_t,
119+ size: :: size_t,
120+ ) -> * mut :: c_void>,
121+ pub calloc: Option <unsafe extern "C" fn (
122+ zone: * mut malloc_zone_t,
123+ num_items: :: size_t,
124+ size: :: size_t,
125+ ) -> * mut :: c_void>,
126+ pub valloc: Option <unsafe extern "C" fn (
127+ zone: * mut malloc_zone_t,
128+ size: :: size_t
129+ ) -> * mut :: c_void>,
130+ pub free: Option <unsafe extern "C" fn (
131+ zone: * mut malloc_zone_t,
132+ ptr: * mut :: c_void
133+ ) >,
134+ pub realloc: Option <unsafe extern "C" fn (
135+ zone: * mut malloc_zone_t,
136+ ptr: * mut :: c_void,
137+ size: :: size_t,
138+ ) -> * mut :: c_void>,
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,
143+ size: :: size_t,
144+ results: * mut * mut :: c_void,
145+ num_requested: :: c_uint,
146+ ) -> :: 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,
151+ ) >,
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,
156+ alignment: :: size_t,
157+ size: :: size_t,
158+ ) -> * mut :: c_void>,
159+ pub free_definite_size: Option <unsafe extern "C" fn (
160+ zone: * mut malloc_zone_t,
161+ ptr: * mut :: c_void,
162+ size: :: size_t
163+ ) >,
164+ pub pressure_relief: Option <unsafe extern "C" fn (
165+ zone: * mut malloc_zone_t,
166+ goal: :: size_t,
167+ ) -> :: size_t>,
168+ pub claimed_address: Option <unsafe extern "C" fn (
169+ zone: * mut malloc_zone_t,
170+ ptr: * mut :: c_void,
171+ ) -> :: boolean_t>,
172+ }
105173}
106174
107175cfg_if ! {
0 commit comments