From owner-freebsd-hackers Mon Mar 12 17:33:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from relay1.net.com (relay1.net.com [134.56.3.107]) by hub.freebsd.org (Postfix) with ESMTP id 3A30E37B719 for ; Mon, 12 Mar 2001 17:33:24 -0800 (PST) (envelope-from shankar_agarwal@net.com) Received: from isis.net.com (fremont-ns1.net.com [134.56.112.20]) by relay1.net.com (8.9.3/8.9.3) with ESMTP id RAA25518 for ; Mon, 12 Mar 2001 17:32:34 -0800 (PST) Received: from west-mail.net.com by isis.net.com (8.9.3/SMI-SVR4) id RAA10512; Mon, 12 Mar 2001 17:33:17 -0800 (PST) Received: from net.com ([134.56.103.239]) by west-mail.net.com (Netscape Messaging Server 3.6) with ESMTP id AAAC7F; Mon, 12 Mar 2001 17:34:33 -0800 Message-ID: <3AAD79BB.F2B53814@net.com> Date: Mon, 12 Mar 2001 17:36:59 -0800 From: Shankar Agarwal Organization: N.E.T. http://www.net.com X-Mailer: Mozilla 4.61C-NETv45 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en, en-GB, fr, de MIME-Version: 1.0 To: Alfred Perlstein Cc: bsd hackers Subject: Re: Question regarding the funcation socket()... References: <3AAD7114.A01DE452@net.com> <20010312171828.Q18351@fw.wintelcom.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Thanks Regards Shankar 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. > > -- > -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