Lines Matching refs:ptr
172 void *ptr = memalign(sizeof(size_t), (nitems * size)); in calloc() local
173 if (ptr) in calloc()
174 memset(ptr, 0, (nitems * size)); in calloc()
175 return ptr; in calloc()
178 void *realloc(void *ptr, size_t size) { in realloc() argument
184 return real_realloc(ptr, size); in realloc()
187 if (ptr != NULL) { in realloc()
190 if (ptr == s_mem_map[i].mem_ptr) { in realloc()
196 memcpy(temp, ptr, size); in realloc()
198 memcpy(temp, ptr, s_mem_map[i].mem_size); in realloc()
205 return real_realloc(ptr, size); in realloc()
209 void free(void *ptr) { in free() argument
215 return real_free(ptr); in free()
218 if (ptr != NULL) { in free()
222 if (ptr == s_mem_map[i].mem_ptr) { in free()
260 real_free(ptr); in free()