#include "config.h"
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/sysmacros.h>
#include "umem_base.h"
#include "misc.h"
Classes | |
struct | malloc_data |
Typedefs | |
typedef struct malloc_data | malloc_data_t |
Functions | |
void * | malloc (size_t size_arg) |
void * | calloc (size_t nelem, size_t elsize) |
void * | memalign (size_t align, size_t size_arg) |
void * | valloc (size_t size) |
void | free (void *buf) |
void * | realloc (void *buf_arg, size_t newsize) |
void | __attribute__ ((constructor)) |
typedef struct malloc_data malloc_data_t |
void __attribute__ | ( | (constructor) | ) |
References umem_startup().
void* calloc | ( | size_t | nelem, | |
size_t | elsize | |||
) |
References malloc().
void* malloc | ( | size_t | size_arg | ) |
References _umem_alloc(), MALLOC_MAGIC, malloc_data::malloc_size, malloc_data::malloc_stat, UMEM_DEFAULT, UMEM_MALLOC_ENCODE, UMEM_MAXBUF, and UMEM_SECOND_ALIGN.
Referenced by calloc(), main(), memalign(), and realloc().
void* memalign | ( | size_t | align, | |
size_t | size_arg | |||
) |
References ASSERT, malloc(), malloc_data::malloc_size, malloc_data::malloc_stat, MEMALIGN_MAGIC, P2PHASE, UMEM_ALIGN, umem_init(), UMEM_MALLOC_ENCODE, UMEM_MAXBUF, umem_memalign_arena, UMEM_SECOND_ALIGN, VM_NOSLEEP, and vmem_xalloc().
Referenced by valloc().
void* valloc | ( | size_t | size | ) |
References memalign(), and pagesize.