Home
last modified time | relevance | path

Searched refs:memptr (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp69 int hooks_posix_memalign(void** memptr, size_t alignment, size_t size);
198 int hooks_posix_memalign(void** memptr, size_t alignment, size_t size) { in hooks_posix_memalign() argument
203 *memptr = __memalign_hook(alignment, size, __builtin_return_address(0)); in hooks_posix_memalign()
204 if (*memptr == nullptr) { in hooks_posix_memalign()
209 return g_dispatch->posix_memalign(memptr, alignment, size); in hooks_posix_memalign()
/bionic/libc/bionic/
Dmalloc_common.cpp172 extern "C" int posix_memalign(void** memptr, size_t alignment, size_t size) { in posix_memalign() argument
176 result = dispatch_table->posix_memalign(memptr, alignment, size); in posix_memalign()
178 result = Malloc(posix_memalign)(memptr, alignment, size); in posix_memalign()
181 *memptr = MaybeTagPointer(*memptr); in posix_memalign()
Dmalloc_limit.cpp52 static int LimitPosixMemalign(void** memptr, size_t alignment, size_t size);
163 static int LimitPosixMemalign(void** memptr, size_t alignment, size_t size) { in LimitPosixMemalign() argument
172 retval = dispatch_table->posix_memalign(memptr, alignment, size); in LimitPosixMemalign()
174 retval = Malloc(posix_memalign)(memptr, alignment, size); in LimitPosixMemalign()
179 IncrementLimit(*memptr); in LimitPosixMemalign()
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp194 int debug_posix_memalign(void** memptr, size_t alignment, size_t size);
1024 int debug_posix_memalign(void** memptr, size_t alignment, size_t size) { in debug_posix_memalign() argument
1028 return g_dispatch->posix_memalign(memptr, alignment, size); in debug_posix_memalign()
1035 *memptr = debug_memalign(alignment, size); in debug_posix_memalign()
1037 return (*memptr != nullptr) ? 0 : ENOMEM; in debug_posix_memalign()