Lines Matching defs:address
47 * header, and the address of the client's block. The client block
81 amem->malActl = (void *)nmem; /* Set the actual address */
103 void free(void * address) {
108 if(!(unsigned int)address) return; /* Leave if they try to free nothing */
111 amem = (malloc_block *)((unsigned int)address - sizeof(malloc_block)); /* Point to the header */
190 void * realloc(void * address, size_t new_client_size) {
194 amem = (malloc_block *)((unsigned int)address - sizeof(malloc_block)); /* Point to allocation block */
201 memcpy(new_address, address, amem->malSize - sizeof(malloc_block)); /* Copy the old in */
203 free(address); /* Toss the old one */
219 kern_return_t vm_allocate(vm_map_t target_task, vm_address_t *address, vm_size_t size, int flags)
224 *address = (vm_address_t)malloc(size);
225 bzero(*address, size);
231 kern_return_t vm_deallocate(vm_map_t target_task, vm_address_t address, vm_size_t size)
233 free(address);
238 kern_return_t vm_protect(vm_map_t target_task, vm_address_t address, vm_size_t size, boolean_t set_maximum, vm_prot_t new_protection)
244 kern_return_t vm_msync(vm_map_t target_task, vm_address_t address, vm_size_t size, vm_sync_t sync_flags)