help me!
thank you!
I am not good at English.so please forgive me.
I am reading wine 1.7.47 code source in recent days,but some problems encounter me.
description of problems as follows,hopping who can help me to solve it.
in ~/wine-1.7.47/server/mach.c file,there is one code segment as follows:
Code: Select all
void init_tracing_mechanism(void)
{
mach_port_t bp;
if (task_get_bootstrap_port(mach_task_self(), &bp) != KERN_SUCCESS)
fatal_error("Can't find bootstrap port\n");
if (mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &server_mach_port) != KERN_SUCCESS)
fatal_error("Can't allocate port\n");
if (mach_port_insert_right( mach_task_self(),
server_mach_port,
server_mach_port,
MACH_MSG_TYPE_MAKE_SEND ) != KERN_SUCCESS)
fatal_error("Error inserting rights\n");
if (bootstrap_register(bp, (char*)wine_get_server_dir(), server_mach_port) != KERN_SUCCESS)
fatal_error("Can't check in server_mach_port\n");
mach_port_deallocate(mach_task_self(), bp);
}
so,what should I do to find task_get_bootstrap_port() or where is task_get_bootstrap_port().

