Update.
[glibc.git] / include / malloc.h
blobf0164a62736cdb71d6c4ee9d33be5444e437efa9
1 #ifndef _MALLOC_H
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". */
12 struct malloc_state;
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)
18 attribute_hidden;
19 extern __malloc_ptr_t _int_realloc (mstate __m,
20 __malloc_ptr_t __ptr,
21 size_t __size) attribute_hidden;
22 extern __malloc_ptr_t _int_memalign (mstate __m, size_t __alignment,
23 size_t __size)
24 attribute_hidden;
25 extern __malloc_ptr_t _int_valloc (mstate __m, size_t __size)
26 attribute_hidden;
28 #endif