Back to index

glibc  2.9
Classes | Defines | Functions
malloc.h File Reference
#include <features.h>
#include <stddef.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mallinfo

Defines

#define __malloc_ptr_t   void *
#define __malloc_size_t   size_t
#define __malloc_ptrdiff_t   ptrdiff_t
#define __MALLOC_P(args)   args
#define __MALLOC_PMT(args)   args
#define M_MXFAST   1 /* maximum request size for "fastbins" */
#define M_NLBLKS   2 /* UNUSED in this malloc */
#define M_GRAIN   3 /* UNUSED in this malloc */
#define M_KEEP   4 /* UNUSED in this malloc */
#define M_TRIM_THRESHOLD   -1
#define M_TOP_PAD   -2
#define M_MMAP_THRESHOLD   -3
#define M_MMAP_MAX   -4
#define M_CHECK_ACTION   -5
#define M_PERTURB   -6

Functions

__BEGIN_DECLS void *malloc __MALLOC_P ((size_t __size)) __attribute_malloc__ __wur
void *calloc __MALLOC_P ((size_t __nmemb, size_t __size)) __attribute_malloc__ __wur
void *realloc __MALLOC_P ((void *__ptr, size_t __size)) __attribute_warn_unused_result__
void free __MALLOC_P ((void *__ptr))
void *memalign __MALLOC_P ((size_t __alignment, size_t __size)) __attribute_malloc__ __wur
void *__morecore __MALLOC_PMT ((ptrdiff_t __size))
void *__default_morecore __MALLOC_P ((ptrdiff_t __size)) __attribute_malloc__
struct mallinfo __MALLOC_P ((void))
int mallopt __MALLOC_P ((int __param, int __val))
int malloc_trim __MALLOC_P ((size_t __pad))
void __malloc_initialize_hook __MALLOC_PMT ((void))
void __free_hook __MALLOC_PMT ((void *__ptr, __const __malloc_ptr_t))
void *__malloc_hook __MALLOC_PMT ((size_t __size, __const __malloc_ptr_t))
void *__realloc_hook __MALLOC_PMT ((void *__ptr, size_t __size, __const __malloc_ptr_t))
void *__memalign_hook __MALLOC_PMT ((size_t __alignment, size_t __size, __const __malloc_ptr_t))

Class Documentation

struct mallinfo

Definition at line 93 of file malloc.h.

Class Members
int arena
int fordblks
int fsmblks
int hblkhd
int hblks
int keepcost
int ordblks
int smblks
int uordblks
int usmblks

Define Documentation

#define __MALLOC_P (   args)    args

Definition at line 41 of file malloc.h.

#define __MALLOC_PMT (   args)    args

Definition at line 42 of file malloc.h.

#define __malloc_ptr_t   void *

Definition at line 26 of file malloc.h.

#define __malloc_ptrdiff_t   ptrdiff_t

Definition at line 30 of file malloc.h.

#define __malloc_size_t   size_t

Definition at line 29 of file malloc.h.

#define M_CHECK_ACTION   -5

Definition at line 128 of file malloc.h.

#define M_GRAIN   3 /* UNUSED in this malloc */

Definition at line 117 of file malloc.h.

#define M_KEEP   4 /* UNUSED in this malloc */

Definition at line 120 of file malloc.h.

#define M_MMAP_MAX   -4

Definition at line 127 of file malloc.h.

#define M_MMAP_THRESHOLD   -3

Definition at line 126 of file malloc.h.

#define M_MXFAST   1 /* maximum request size for "fastbins" */

Definition at line 111 of file malloc.h.

#define M_NLBLKS   2 /* UNUSED in this malloc */

Definition at line 114 of file malloc.h.

#define M_PERTURB   -6

Definition at line 129 of file malloc.h.

#define M_TOP_PAD   -2

Definition at line 125 of file malloc.h.

#define M_TRIM_THRESHOLD   -1

Definition at line 124 of file malloc.h.


Function Documentation

void *pvalloc __MALLOC_P ( (size_t __size )
void* calloc __MALLOC_P ( (size_t __nmemb, size_t __size )
void* realloc __MALLOC_P ( (void *__ptr, size_t __size )
int malloc_set_state __MALLOC_P ( (void *__ptr)  )
void* memalign __MALLOC_P ( (size_t __alignment, size_t __size )
void* __default_morecore __MALLOC_P ( (ptrdiff_t __size )
void __malloc_check_init __MALLOC_P ( (void)  ) [read, abstract]
int mallopt __MALLOC_P ( (int __param, int __val)  )
int malloc_trim __MALLOC_P ( (size_t __pad )
void* __morecore __MALLOC_PMT ( (ptrdiff_t __size )
void __free_hook __MALLOC_PMT ( (void *__ptr, __const __malloc_ptr_t )