X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/51631861ddb16afcfcf748cee26c14481549065e..c957a83bde4df2e2d3d1ed0963656856b48ef0a0:/mach/headers/mach_init.h diff --git a/mach/headers/mach_init.h b/mach/headers/mach_init.h index c64c241..58cc74d 100644 --- a/mach/headers/mach_init.h +++ b/mach/headers/mach_init.h @@ -58,22 +58,22 @@ #include -__BEGIN_DECLS /* * Kernel-related ports; how a task/thread controls itself */ -extern mach_port_t mach_task_self_; - +__BEGIN_DECLS extern mach_port_t mach_task_self(void); extern mach_port_t mach_host_self(void); extern mach_port_t mach_thread_self(void); +__END_DECLS +extern mach_port_t mach_task_self_; #define mach_task_self() mach_task_self_ - #define current_task() mach_task_self() #include + /* * Other important ports in the Mach user environment */ @@ -100,6 +100,8 @@ extern mach_port_t service_port; */ extern vm_size_t vm_page_size; +extern vm_size_t vm_page_mask; +extern int vm_page_shift; #define trunc_page(x) ((x) & (~(vm_page_size - 1))) #define round_page(x) trunc_page((x) + (vm_page_size - 1)) @@ -109,7 +111,7 @@ extern vm_size_t vm_page_size; * error messages, this can be overridden by a user * application to point to a user-specified output function */ - +__BEGIN_DECLS extern int (*vprintf_stderr_func)(const char *format, va_list ap); __END_DECLS