Searched defs:malloc (Results 1 - 25 of 37) sorted by relevance

12

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dfakewin.h43 #define malloc _fmalloc macro
/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/cmd/fs.d/autofs/
H A Ddebug_alloc.h74 #define malloc(a) my_malloc(a, __FILE__, __LINE__) macro
/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/cmd/lvm/rpc.metamedd/
H A Dmed_hash.h60 #define malloc bkmem_alloc macro
/illumos-gate/usr/src/boot/lib/libstand/
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/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/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/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/common/tsol/
H A Dltos.c57 #define malloc(l) kmem_alloc(l, KM_NOSLEEP) macro
96 if ((hex = malloc(hex_len)) == NULL) {
/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/cmd/spell/
H A Dmalloc.c81 malloc(nbytes) function
157 * from malloc into the arena
195 /* realloc(p, nbytes) reallocates a block obtained from malloc()
196 * and freed since last call of malloc()
216 q = (union store *)malloc(nbytes);
/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/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/libast/amd64/include/ast/
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/common/include/
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/include/ast/
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/include/ast/
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/sparcv9/include/ast/
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/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/cmd/sgs/include/
H A Dsgs.h210 #define malloc libld_malloc macro
/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/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...]
/illumos-gate/usr/src/lib/libsasl/include/
H A Dsaslplug.h77 sasl_malloc_t *malloc; member in struct:sasl_utils

Completed in 118 milliseconds

12