Lines Matching refs:uptr
26 DECLARE_REAL_AND_INTERCEPTOR(void*, malloc, uptr size)
28 DECLARE_REAL_AND_INTERCEPTOR(void*, calloc, uptr nmemb, uptr size)
29 DECLARE_REAL_AND_INTERCEPTOR(void*, realloc, void *ptr, uptr size)
30 DECLARE_REAL_AND_INTERCEPTOR(void*, memalign, uptr boundary, uptr size)
33 void* (*malloc)(uptr bytes);
35 void* (*calloc)(uptr n_elements, uptr elem_size);
36 void* (*realloc)(void* oldMem, uptr bytes);
37 void* (*memalign)(uptr alignment, uptr bytes);
73 INTERCEPTOR(void*, malloc, uptr size) { in INTERCEPTOR()
78 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR()
81 const uptr kCallocPoolSize = 1024; in INTERCEPTOR()
82 static uptr calloc_memory_for_dlsym[kCallocPoolSize]; in INTERCEPTOR()
83 static uptr allocated; in INTERCEPTOR()
84 uptr size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize; in INTERCEPTOR()
94 INTERCEPTOR(void*, realloc, void *ptr, uptr size) { in INTERCEPTOR()
99 INTERCEPTOR(void*, memalign, uptr boundary, uptr size) { in INTERCEPTOR()
104 INTERCEPTOR(void*, __libc_memalign, uptr align, uptr s)
107 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) { in INTERCEPTOR() argument
130 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR()
136 INTERCEPTOR(void*, valloc, uptr size) { in INTERCEPTOR()
141 INTERCEPTOR(void*, pvalloc, uptr size) { in INTERCEPTOR()