Back to index

glibc  2.9
munmap.c File Reference
#include <sys/types.h>
#include <sys/mman.h>
#include <errno.h>
#include <mach.h>

Go to the source code of this file.


int __munmap (__ptr_t addr, size_t len)

Function Documentation

int __munmap ( __ptr_t  addr,
size_t  len 

Definition at line 28 of file munmap.c.

  kern_return_t err;
  if (err = __vm_deallocate (__mach_task_self (),
                          (vm_address_t) addr, (vm_size_t) len))
      errno = err;
      return -1;
  return 0;

Here is the call graph for this function: