Lines Matching refs:ptr
46 // get the area ID for the ptr
68 AreaUtils::free(void *ptr)
70 //PRINT(("AreaUtils::free(%p)\n", ptr));
72 return ::free(ptr);
74 if (ptr) {
77 if (area_info_for(ptr, &info) == B_OK) {
78 if (ptr == info.address) {
83 "Ignored.\n", ptr, info.address));
121 AreaUtils::realloc(void * ptr, size_t size)
123 //PRINT(("AreaUtils::realloc(%p, %lu)\n", ptr, size))
125 return ::realloc(ptr, size);
129 AreaUtils::free(ptr);
130 } else if (ptr) {
133 if (area_info_for(ptr, &info) == B_OK) {
134 if (ptr == info.address) {
139 newAddress = ptr;
142 newAddress = ptr;
147 memcpy(newAddress, ptr, min(size, info.size));
153 "Ignored.\n", ptr, info.address));