Back to index

glibc  2.9
Functions | Variables
mach_init.c File Reference
#include <mach.h>
#include <mach/mig_support.h>
#include <unistd.h>

Go to the source code of this file.


 weak_alias (__vm_page_size, vm_page_size)


mach_port_t __mach_task_self_
vm_size_t __vm_page_size = 0

Function Documentation

Definition at line 25 of file mach_init.c.

  kern_return_t err;

  __mach_task_self_ = (__mach_task_self) ();
  __mig_init (0);

  if (err = __host_page_size (__mach_host_self (), &__vm_page_size))
    _exit (err);
    vm_statistics_data_t stats;
    if (err = __vm_statistics (__mach_task_self (), &stats))
      _exit (err);
    __vm_page_size = stats.pagesize;

Here is the call graph for this function:

Variable Documentation

mach_port_t __mach_task_self_

Definition at line 23 of file mach_init.c.

vm_size_t __vm_page_size = 0

Definition at line 24 of file mach_init.c.