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.cpp146 extern "C" int posix_memalign(void** memptr, size_t alignment, size_t size) { in posix_memalign() argument
150 result = dispatch_table->posix_memalign(memptr, alignment, size); in posix_memalign()
152 result = Malloc(posix_memalign)(memptr, alignment, size); in posix_memalign()
155 *memptr = MaybeTagPointer(*memptr); in posix_memalign()
Dmalloc_limit.cpp51 static int LimitPosixMemalign(void** memptr, size_t alignment, size_t size);
162 static int LimitPosixMemalign(void** memptr, size_t alignment, size_t size) { in LimitPosixMemalign() argument
171 retval = dispatch_table->posix_memalign(memptr, alignment, size); in LimitPosixMemalign()
173 retval = Malloc(posix_memalign)(memptr, alignment, size); in LimitPosixMemalign()
178 IncrementLimit(*memptr); in LimitPosixMemalign()
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp97 int debug_posix_memalign(void** memptr, size_t alignment, size_t size);
875 int debug_posix_memalign(void** memptr, size_t alignment, size_t size) { in debug_posix_memalign() argument
877 return g_dispatch->posix_memalign(memptr, alignment, size); in debug_posix_memalign()
884 *memptr = debug_memalign(alignment, size); in debug_posix_memalign()
886 return (*memptr != nullptr) ? 0 : ENOMEM; in debug_posix_memalign()