(libc.info.gz) Summary of Malloc

Info Catalog (libc.info.gz) Statistics of Malloc (libc.info.gz) Unconstrained Allocation
 
 3.2.2.12 Summary of 'malloc'-Related Functions
 ..............................................
 
 Here is a summary of the functions that work with 'malloc':
 
 'void *malloc (size_t SIZE)'
      Allocate a block of SIZE bytes.   Basic Allocation.
 
 'void free (void *ADDR)'
      Free a block previously allocated by 'malloc'.   Freeing after
      Malloc.
 
 'void *realloc (void *ADDR, size_t SIZE)'
      Make a block previously allocated by 'malloc' larger or smaller,
      possibly by copying it to a new location.   Changing Block
      Size.
 
 'void *calloc (size_t COUNT, size_t ELTSIZE)'
      Allocate a block of COUNT * ELTSIZE bytes using 'malloc', and set
      its contents to zero.   Allocating Cleared Space.
 
 'void *valloc (size_t SIZE)'
      Allocate a block of SIZE bytes, starting on a page boundary.  
      Aligned Memory Blocks.
 
 'void *aligned_alloc (size_t SIZE, size_t ALIGNMENT)'
      Allocate a block of SIZE bytes, starting on an address that is a
      multiple of ALIGNMENT.   Aligned Memory Blocks.
 
 'int posix_memalign (void **MEMPTR, size_t ALIGNMENT, size_t SIZE)'
      Allocate a block of SIZE bytes, starting on an address that is a
      multiple of ALIGNMENT.   Aligned Memory Blocks.
 
 'void *memalign (size_t SIZE, size_t BOUNDARY)'
      Allocate a block of SIZE bytes, starting on an address that is a
      multiple of BOUNDARY.   Aligned Memory Blocks.
 
 'int mallopt (int PARAM, int VALUE)'
      Adjust a tunable parameter.   Malloc Tunable Parameters.
 
 'int mcheck (void (*ABORTFN) (void))'
      Tell 'malloc' to perform occasional consistency checks on
      dynamically allocated memory, and to call ABORTFN when an
      inconsistency is found.   Heap Consistency Checking.
 
 'void *(*__malloc_hook) (size_t SIZE, const void *CALLER)'
      A pointer to a function that 'malloc' uses whenever it is called.
 
 'void *(*__realloc_hook) (void *PTR, size_t SIZE, const void *CALLER)'
      A pointer to a function that 'realloc' uses whenever it is called.
 
 'void (*__free_hook) (void *PTR, const void *CALLER)'
      A pointer to a function that 'free' uses whenever it is called.
 
 'void (*__memalign_hook) (size_t SIZE, size_t ALIGNMENT, const void *CALLER)'
      A pointer to a function that 'aligned_alloc', 'memalign',
      'posix_memalign' and 'valloc' use whenever they are called.
 
 'struct mallinfo mallinfo (void)'
      Return information about the current dynamic memory usage.  
      Statistics of Malloc.
 
Info Catalog (libc.info.gz) Statistics of Malloc (libc.info.gz) Unconstrained Allocation
automatically generated by info2html