Home
last modified time | relevance | path

Searched refs:__malloc_size_t (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/external/gpl2/libmalloc/dist/
H A Dmalloc.h86 #define __malloc_size_t size_t macro
89 #define __malloc_size_t unsigned int
99 extern __ptr_t malloc __P ((__malloc_size_t __size));
102 extern __ptr_t realloc __P ((__ptr_t __ptr, __malloc_size_t __size));
104 extern __ptr_t calloc __P ((__malloc_size_t __nmemb, __malloc_size_t __size));
109 extern __ptr_t memalign __P ((__malloc_size_t __alignment,
110 __malloc_size_t __size));
113 extern __ptr_t valloc __P ((__malloc_size_t __size));
149 __malloc_size_t nfree; /* Free frags in a fragmented block. */
150 __malloc_size_t first; /* First free fragment of the block. */
[all …]
H A Dgmalloc.c88 #define __malloc_size_t size_t macro
91 #define __malloc_size_t unsigned int
101 extern __ptr_t malloc __P ((__malloc_size_t __size));
104 extern __ptr_t realloc __P ((__ptr_t __ptr, __malloc_size_t __size));
106 extern __ptr_t calloc __P ((__malloc_size_t __nmemb, __malloc_size_t __size));
111 extern __ptr_t memalign __P ((__malloc_size_t __alignment,
112 __malloc_size_t __size));
115 extern __ptr_t valloc __P ((__malloc_size_t __size));
151 __malloc_size_t nfree; /* Free frags in a fragmented block. */
152 __malloc_size_t first; /* First free fragment of the block. */
[all …]
H A Dmalloc.c34 __ptr_t (*__malloc_hook) __P ((__malloc_size_t __size));
43 static __malloc_size_t heapsize;
46 __malloc_size_t _heapindex;
49 __malloc_size_t _heaplimit;
55 __malloc_size_t _chunks_used;
56 __malloc_size_t _bytes_used;
57 __malloc_size_t _chunks_free;
58 __malloc_size_t _bytes_free;
67 static __ptr_t align __P ((__malloc_size_t));
70 __malloc_size_t size; in align()
[all …]
H A Dmcheck.c34 static __ptr_t (*old_malloc_hook) __P ((__malloc_size_t size));
35 static __ptr_t (*old_realloc_hook) __P ((__ptr_t ptr, __malloc_size_t size));
49 __malloc_size_t size; /* Exact size requested by user. */
56 static void flood __P ((__ptr_t, int, __malloc_size_t));
61 __malloc_size_t size;
109 static __ptr_t mallochook __P ((__malloc_size_t));
112 __malloc_size_t size; in mallochook()
129 static __ptr_t reallochook __P ((__ptr_t, __malloc_size_t));
133 __malloc_size_t size;
136 __malloc_size_t osize = hdr->size;
H A Dmtrace.c53 static __ptr_t (*tr_old_malloc_hook) __P ((__malloc_size_t size));
54 static __ptr_t (*tr_old_realloc_hook) __P ((__ptr_t ptr, __malloc_size_t size));
92 static __ptr_t tr_mallochook __P ((__malloc_size_t));
94 tr_mallochook (__malloc_size_t size) in tr_mallochook()
112 static __ptr_t tr_reallochook __P ((__ptr_t, __malloc_size_t));
114 tr_reallochook (__ptr_t ptr, __malloc_size_t size) in tr_reallochook()
H A Drealloc.c101 __ptr_t (*__realloc_hook) __P ((__ptr_t __ptr, __malloc_size_t __size));
112 __malloc_size_t size;
116 __malloc_size_t block, blocks, oldlimit;
203 if (size > (__malloc_size_t) (1 << (type - 1)) &&
204 size <= (__malloc_size_t) (1 << type))
214 memcpy (result, ptr, min (size, (__malloc_size_t) 1 << type));
H A Dvalloc.c39 static __malloc_size_t pagesize;
43 __malloc_size_t size; in valloc()
H A Dcalloc.c32 register __malloc_size_t nmemb; in calloc()
33 register __malloc_size_t size;
H A Dfree.c43 __malloc_size_t block, blocks;
44 register __malloc_size_t i;
109 register __malloc_size_t bytes = blocks * BLOCKSIZE;
141 for (i = 1; i < (__malloc_size_t) (BLOCKSIZE >> type); ++i)
H A Dmalloc-find.c36 __malloc_size_t block = BLOCK (ptr);
56 __malloc_size_t size = 1 << type;
H A Dmemalign.c29 __malloc_size_t alignment; in memalign()
30 __malloc_size_t size;