Back to index

glibc  2.9
malloc.h
Go to the documentation of this file.
00001 #ifndef _MALLOC_H
00002 #include <malloc/malloc.h>
00003 
00004 
00005 /* In the GNU libc we rename the global variable
00006    `__malloc_initialized' to `__libc_malloc_initialized'.  */
00007 #define __malloc_initialized __libc_malloc_initialized
00008 /* Nonzero if the malloc is already initialized.  */
00009 extern int __malloc_initialized attribute_hidden;
00010 
00011 /* Internal routines, operating on "arenas".  */
00012 struct malloc_state;
00013 typedef struct malloc_state *mstate;
00014 
00015 extern __malloc_ptr_t _int_malloc (mstate __m, size_t __size) attribute_hidden;
00016 extern void           _int_free (mstate __m, __malloc_ptr_t __ptr)
00017      attribute_hidden;
00018 extern __malloc_ptr_t _int_realloc (mstate __m,
00019                                 __malloc_ptr_t __ptr,
00020                                 size_t __size) attribute_hidden;
00021 extern __malloc_ptr_t _int_memalign (mstate __m, size_t __alignment,
00022                                  size_t __size)
00023      attribute_hidden;
00024 extern __malloc_ptr_t _int_valloc (mstate __m, size_t __size)
00025      attribute_hidden;
00026 
00027 #endif