regarding wine1.7.47 code source

Questions about Wine on Linux
Locked
lxy
Newbie
Newbie
Posts: 2
Joined: Fri Jul 10, 2015 1:14 am

regarding wine1.7.47 code source

Post by lxy »

hello,every one
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);
}
I use vim and ctags browseing code,but when I want to look task_get_bootstrap_port() function by useing ctags,ctags prompt “there is no tags”
so,what should I do to find task_get_bootstrap_port() or where is task_get_bootstrap_port().

:) :) good luck
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: regarding wine1.7.47 code source

Post by dimesio »

lxy wrote: what should I do to find task_get_bootstrap_port() or where is task_get_bootstrap_port().
https://www.gnu.org/software/hurd/gnuma ... cial-Ports
lxy
Newbie
Newbie
Posts: 2
Joined: Fri Jul 10, 2015 1:14 am

Re: regarding wine1.7.47 code source

Post by lxy »

dimesio wrote:
lxy wrote: what should I do to find task_get_bootstrap_port() or where is task_get_bootstrap_port().
https://www.gnu.org/software/hurd/gnuma ... cial-Ports
thank you! :D can you give me some advice about viewing wine code source
thank you
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: regarding wine1.7.47 code source

Post by dimesio »

You already know you can open the files in any text editor, so I assume the advice you're looking for is about how to find things. You can search for specific identifiers online at http://source.winehq.org/ident, or if you have cloned git locally, use git grep to search the tree.
Locked