Searched defs:malloc (Results 1 - 25 of 37) sorted by last modified time

12

/illumos-gate/usr/src/boot/lib/libstand/
H A Dstand.h251 extern void *malloc(size_t bytes);
412 #define malloc(x) Malloc(x, __FILE__, __LINE__) macro
417 #define malloc(x) Malloc(x, NULL, 0) macro
H A Dzalloc_malloc.c34 * MALLOC.C - malloc equivalent, runs on top of zalloc and uses sbrk
48 #ifdef malloc
49 #undef malloc macro
/illumos-gate/usr/src/cmd/lvm/rpc.metamedd/
H A Dmed_hash.h60 #define malloc bkmem_alloc macro
/illumos-gate/usr/src/lib/libmalloc/common/
H A Dmalloc.c40 #include "malloc.h"
56 * use level memory allocater (malloc, free, realloc)
58 * -malloc, free, realloc and mallopt form a memory allocator
59 * similar to malloc, free, and realloc. The routines
90 * with a preceding block during the search phase of malloc.
95 * freed and reallocated on the next call to malloc. The
101 * malloc. This block contains a header and ?????? small blocks.
177 * malloc(nbytes) - give a user nbytes to use
181 malloc(size_t nbytes) function
211 return (malloc(siz
[all...]
/illumos-gate/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c52 * The MT hot malloc implementation contained herein is designed to be
53 * plug-compatible with the libc version of malloc. It is not intended
104 * get to the aligned address from malloc'ed address is the minimum size
107 * from memaligned address, we can get to the malloc'ed address. Otherwise,
110 * malloc'ed address.
234 malloc(size_t bytes) function
258 return (malloc(bytes));
270 * p = malloc(64);
283 new = malloc(bytes);
348 ptr = malloc(siz
[all...]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c33 * Simplified version of malloc(), calloc() and free(), to be linked with
126 * for later malloc activity.
154 * Replace both malloc() and lmalloc() (libc's private memory allocator).
157 #pragma weak lmalloc = malloc
159 malloc(size_t size) function
224 if ((mp = malloc(total)) == NULL)
238 return (malloc(size));
263 if ((newptr = malloc(size)) == NULL)
/illumos-gate/usr/src/lib/libumem/common/
H A Dmalloc.c43 * argument to umem_alloc(), not the argument to malloc().
56 #pragma weak malloc = umem_malloc macro
133 retval = malloc(size);
165 * if malloc provides the required alignment, use it.
169 return (malloc(size_arg));
397 return (malloc(newsize));
415 buf = malloc(newsize);
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dsaslint.h329 sasl_malloc_t *malloc; member in struct:sasl_allocation_utils
401 /* malloc et al */
461 #define sasl_ALLOC(__size__) (gctx->sasl_allocation_utils.malloc((__size__)))
467 #define sasl_sun_ALLOC(__size__) (malloc((__size__)))
478 #define sasl_ALLOC(__size__) (_sasl_allocation_utils.malloc((__size__)))
/illumos-gate/usr/src/stand/lib/sa/
H A Dmalloc.c32 * For documentation on these functions, see malloc(3C).
36 malloc(size_t size) function
55 addr = malloc(number * size);
68 addr = malloc(size);
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c33 * Memory management: malloc(), realloc(), free(), memalign().
119 /* want to return a unique pointer on malloc(0) */
164 malloc(size_t size) function
401 call_malloc: /* call malloc to get a new block */
414 * Attempt special case recovery allocations since malloc() failed:
419 * malloc() may have failed to allocate the chunk of
422 * malloc() may have failed as with 2. Change to
465 /* malloc() sets errno */
476 * than malloc/realloc and the tree searches performed by these
1120 size_t reqsize; /* Num of bytes to get from malloc() */
[all...]
/illumos-gate/usr/src/lib/libsasl/include/
H A Dsaslplug.h77 sasl_malloc_t *malloc; member in struct:sasl_utils
/illumos-gate/usr/src/lib/libpkg/common/
H A Dnhash.c41 #define malloc bkmem_alloc macro
79 if ((*cp = (Cache *) malloc(sizeof (**cp))) == NULL) {
80 (void) fprintf(stderr, pkg_gt("malloc(Cache **cp)"));
84 (Bucket *) malloc(sizeof (*(*cp)->bp) * hsz)) == NULL) {
85 (void) fprintf(stderr, pkg_gt("malloc(Bucket cp->bp)"));
125 (Item **) malloc(sizeof (*bp->itempp) * cp->bsz);
134 (Item **) malloc(sizeof (*bp->itempp) *
H A Dnhash.h63 #define malloc bkmem_alloc macro
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c36 * Simplified version of malloc(), free() and realloc(), to be linked with
96 malloc(size_t size) function
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmalloc.c33 * Memory management: malloc(), realloc(), free().
71 * This never worked when alternate malloc() libraries were used
75 * real locking: libc_malloc_lock. This puts libc's malloc() package
76 * on the same footing as all other malloc packages.
94 #define FREESIZE (1<<5) /* size for preserving free blocks until next malloc */
97 static void *flist[FREESIZE]; /* list of blocks to be freed on next malloc */
127 /* want to return a unique pointer on malloc(0) */
163 malloc(size_t size) function
224 /* perform free's of space since last malloc */
330 /* perform free's of space since last malloc */
[all...]
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmalloc.c30 * file: malloc.c
393 * malloc(nbytes)
422 malloc(uint nbytes) function
547 } /*malloc*/
738 * a block freed since the LAST call of malloc(). Thus the old
747 * dummy = malloc(1);
769 return (malloc(nbytes));
902 ptr = malloc(nbytes);
1208 * load /usr/lib/malloc.debug.o with your program.
1228 * done by malloc() an
[all...]
/illumos-gate/usr/src/lib/libbsdmalloc/common/
H A Dmalloc.bsd43.c8 * wizard:/space/4.3reno/usr/src/lib/libc/stdlib/malloc.c
28 * malloc.c (Caltech) 2/21/82
97 malloc(size_t nbytes) function
105 * First time malloc is called, setup page size and
252 * old malloc man page, it realloc's an already freed block. Usually
273 return (malloc(nbytes));
287 * If all lookups fail, then just malloc() the
292 if ((res = malloc(nbytes)) != NULL)
317 if ((res = malloc(nbytes)) == NULL)
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dmalloc.c32 #define malloc ______malloc macro
50 #include <malloc.h>
59 #undef malloc macro
60 #define malloc _ast_malloc macro
82 * define _AST_std_malloc=1 to force the standard malloc
84 * will simply call malloc etc.
91 /* malloc compatibility functions
151 #undef malloc macro
236 /* if getenv() calls malloc(), the options may not affect the eventual region */
260 extern Void_t* malloc(re function
579 #undef malloc macro
580 #define malloc macro
680 #undef malloc macro
731 #define malloc macro
[all...]
H A Dvmhdr.h98 #define _std_malloc 1 /* do not define malloc/free/realloc */
357 #undef malloc macro
/illumos-gate/usr/src/lib/libast/i386/include/ast/
H A Dast_map.h418 /* cannot override local malloc */
429 #undef malloc macro
430 #define malloc _ast_malloc macro
431 extern __MANGLE__ __V_* malloc __PROTO__((size_t));
H A Dvmalloc.h25 /* Public header file for the virtual malloc package.
134 extern Vmalloc_t* Vmregion; /* malloc region */
186 extern Void_t* malloc _ARG_(( size_t ));
234 #undef malloc macro
243 #define malloc(s) (_VMFL_(Vmregion), _ast_malloc((size_t)(s)) ) macro
255 #define malloc(s) ( _VMFL_(Vmregion), (malloc)((size_t)(s)) )
268 #define malloc(s) ( _VMFL_(Vmregion), _VMNM_(mallo,/,*,*,/,c)\
/illumos-gate/usr/src/lib/libast/i386/src/lib/libast/
H A Dast_map.h397 /* cannot override local malloc */
408 #undef malloc macro
409 #define malloc _ast_malloc macro
410 extern __MANGLE__ __V_* malloc __PROTO__((size_t));
/illumos-gate/usr/src/lib/libast/sparc/include/ast/
H A Dast_map.h418 /* cannot override local malloc */
429 #undef malloc macro
430 #define malloc _ast_malloc macro
431 extern __MANGLE__ __V_* malloc __PROTO__((size_t));
H A Dvmalloc.h25 /* Public header file for the virtual malloc package.
134 extern Vmalloc_t* Vmregion; /* malloc region */
186 extern Void_t* malloc _ARG_(( size_t ));
234 #undef malloc macro
243 #define malloc(s) (_VMFL_(Vmregion), _ast_malloc((size_t)(s)) ) macro
255 #define malloc(s) ( _VMFL_(Vmregion), (malloc)((size_t)(s)) )
268 #define malloc(s) ( _VMFL_(Vmregion), _VMNM_(mallo,/,*,*,/,c)\
/illumos-gate/usr/src/lib/libast/sparc/src/lib/libast/
H A Dast_map.h397 /* cannot override local malloc */
408 #undef malloc macro
409 #define malloc _ast_malloc macro
410 extern __MANGLE__ __V_* malloc __PROTO__((size_t));

Completed in 104 milliseconds

12