#include <nlibc.h>#include <unistd.h>Include dependency graph for bsdmalloc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| union | overhead |
Defines | |
| #define | overhead __malloc_overhead |
| #define | pagebucket __malloc_pagebucket |
| #define | pagesz __malloc_pagesz |
| #define | nmalloc __malloc_nmalloc |
| #define | realloc_srchlen __malloc_realloc_srchlen |
| #define | ov_magic ovu.ovu_magic |
| #define | ov_index ovu.ovu_index |
| #define | ov_rmagic ovu.ovu_rmagic |
| #define | ov_size ovu.ovu_size |
| #define | MAGIC 0xef |
| #define | RMAGIC 0x5555 |
| #define | RSLOP 0 |
| #define | NBUCKETS 30 |
| #define | MALLOC_ASSERT(p) |
| #define | w_sizeof(OBJ) (sizeof_aligned(OBJ)>>4) |
| #define | malloc(BYTES) wmalloc(((BYTES)+15)>>4) |
| #define | realloc(PTR, NBYTES) wrealloc(PTR,((NBYTES)+15)>>4) |
| #define | calloc(N, BYTESIZE) wcalloc((N),((BYTESIZE+15)>>4)) |
Functions | |
| int | getpagesize () |
| void | morecore () |
| int | findbucket () |
| void * | wmalloc (size_t nwords) |
| void | free (void *cp) |
| void * | wrealloc (void *cp, size_t nwords) |
| void * | wcalloc (size_t nmemb, size_t words) |
Variables | |
| overhead * | nextf [NBUCKETS] |
| int | pagebucket = 0 |
| int | pagesz = 0 |
| int | realloc_srchlen = 4 |
|
|
calloc() allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. The memory is set to zero. Definition at line 419 of file bsdmalloc.h. |
|
|
Definition at line 104 of file bsdmalloc.h. |
|
|
Definition at line 156 of file bsdmalloc.h. |
|
|
Definition at line 151 of file bsdmalloc.h. |
|
|
Definition at line 119 of file bsdmalloc.h. |
|
|
Definition at line 85 of file bsdmalloc.h. |
|
|
Definition at line 99 of file bsdmalloc.h. |
|
|
Definition at line 98 of file bsdmalloc.h. |
|
|
Definition at line 100 of file bsdmalloc.h. |
|
|
Definition at line 101 of file bsdmalloc.h. |
|
|
Definition at line 82 of file bsdmalloc.h. |
|
|
Definition at line 83 of file bsdmalloc.h. |
|
|
Definition at line 84 of file bsdmalloc.h. |
|
|
Definition at line 341 of file bsdmalloc.h. |
|
|
Definition at line 86 of file bsdmalloc.h. |
|
|
Definition at line 105 of file bsdmalloc.h. |
|
|
Definition at line 110 of file bsdmalloc.h. |
|
|
Definition at line 154 of file bsdmalloc.h. |
|
|
|
|
|
|
|
|
Definition at line 62 of file bsdmalloc.h. |
|
|
|
|
||||||||||||
|
wcalloc() allocates memory for an array of nmemb elements of size words each and returns a pointer to the allocated memory. The memory is set to zero. Definition at line 429 of file bsdmalloc.h. |
|
|
Referenced by wcalloc(). |
|
||||||||||||
|
|
|
|
Definition at line 120 of file bsdmalloc.h. |
|
|
Definition at line 122 of file bsdmalloc.h. |
|
|
Definition at line 123 of file bsdmalloc.h. |
|
|
Definition at line 339 of file bsdmalloc.h. |
1.3.5