From owner-freebsd-hackers Mon Mar 12 17:50:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 5CC2237B718 for ; Mon, 12 Mar 2001 17:50:07 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f2D1o6h00555; Mon, 12 Mar 2001 17:50:06 -0800 (PST) Date: Mon, 12 Mar 2001 17:50:05 -0800 From: Alfred Perlstein To: Shankar Agarwal Cc: bsd hackers Subject: Re: Question regarding the funcation socket()... Message-ID: <20010312175005.B29888@fw.wintelcom.net> References: <3AAD7114.A01DE452@net.com> <20010312171828.Q18351@fw.wintelcom.net> <3AAD79BB.F2B53814@net.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AAD79BB.F2B53814@net.com>; from shankar_agarwal@net.com on Mon, Mar 12, 2001 at 05:36:59PM -0800 X-all-your-base: are belong to us. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Alfred Perlstein wrote: > > > > Try breaking up emails into paragraph sized individual questions. :) > > > > * Shankar Agarwal [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. * Shankar Agarwal [010312 17:33] wrote: > Hi Alfred, > I took your advice and did a search for the function socket, bind > ,connect but i did not get any thing file which contains the code for > this functions. So i am still stuck in the same place. Sorry, this mail leaves me unable to help you any further. Can you explain _why_ this isn't working, like an error message, maybe? This will only work if you have the source code installed on your machine. I also doubt you've had time to do a "make world" and search through the output to find where these functions are defined in libc. I'm also confused, if you're saying there's a sys_socket function, where did you find it? The sys_ prefix has me worried that for some reason you've choosen to email the FreeBSD-hackers list with questions about either Linux or some other BSD other than FreeBSD. Are you sure you're in the right place? -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] Daemon News Magazine in your snail-mail! http://magazine.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message