Try breaking up emails into paragraph sized individual questions. :)
* Shankar Agarwal <[EMAIL PROTECTED]> [010312 16:57] wrote:
> Hi,
> I am trying to find out where the function socket() is actually defined.
> I did a search on the sources and i kind of could not locate this
> function.
If you want to see the userland "stub", then do a "make world" and
pipe the output into a file, then look at how "libc" is built.
If you want to find the kernel function you can usually do this:
cd /usr/src/sys ; grep ^functioname */*
yes, the '^' is there on purpose.
You can also look at some tools like cscope or gtags to index the
code for you.
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message