aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/malloc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h
index eb2afb9330..f0164a6273 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -8,4 +8,21 @@
/* Nonzero if the malloc is already initialized. */
extern int __malloc_initialized attribute_hidden;
+/* Internal routines, operating on "arenas". */
+struct malloc_state;
+typedef struct malloc_state *mstate;
+
+extern mstate _int_new_arena (size_t __ini_size) attribute_hidden;
+extern __malloc_ptr_t _int_malloc (mstate __m, size_t __size) attribute_hidden;
+extern void _int_free (mstate __m, __malloc_ptr_t __ptr)
+ attribute_hidden;
+extern __malloc_ptr_t _int_realloc (mstate __m,
+ __malloc_ptr_t __ptr,
+ size_t __size) attribute_hidden;
+extern __malloc_ptr_t _int_memalign (mstate __m, size_t __alignment,
+ size_t __size)
+ attribute_hidden;
+extern __malloc_ptr_t _int_valloc (mstate __m, size_t __size)
+ attribute_hidden;
+
#endif