2.9
[glibc/nacl-glibc.git] / include / malloc.h
blob1a202485594a37f8abb537144ad6e0505c0880ce
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 __malloc_ptr_t _int_malloc (mstate __m, size_t __size) attribute_hidden;
16 extern void _int_free (mstate __m, __malloc_ptr_t __ptr)
17 attribute_hidden;
18 extern __malloc_ptr_t _int_realloc (mstate __m,
19 __malloc_ptr_t __ptr,
20 size_t __size) attribute_hidden;
21 extern __malloc_ptr_t _int_memalign (mstate __m, size_t __alignment,
22 size_t __size)
23 attribute_hidden;
24 extern __malloc_ptr_t _int_valloc (mstate __m, size_t __size)
25 attribute_hidden;
27 #endif