2 #include <malloc/malloc.h>
5 /* In the GNU libc we rename the global variable
6 `__malloc_initialized' to `__libc_malloc_initialized'. */
7 #define __malloc_initialized __libc_malloc_initialized
8 /* Nonzero if the malloc is already initialized. */
9 extern int __malloc_initialized attribute_hidden
;
11 /* Internal routines, operating on "arenas". */
13 typedef struct malloc_state
*mstate
;
15 extern mstate
_int_new_arena (size_t __ini_size
) attribute_hidden
;
16 extern __malloc_ptr_t
_int_malloc (mstate __m
, size_t __size
) attribute_hidden
;
17 extern void _int_free (mstate __m
, __malloc_ptr_t __ptr
)
19 extern __malloc_ptr_t
_int_realloc (mstate __m
,
21 size_t __size
) attribute_hidden
;
22 extern __malloc_ptr_t
_int_memalign (mstate __m
, size_t __alignment
,
25 extern __malloc_ptr_t
_int_valloc (mstate __m
, size_t __size
)