From owner-freebsd-stable@FreeBSD.ORG Tue Nov 30 02:54:37 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64DF516A4CF for ; Tue, 30 Nov 2004 02:54:37 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F82043D1D for ; Tue, 30 Nov 2004 02:54:36 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id iAU2rZZg029575 for ; Tue, 30 Nov 2004 13:23:35 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 30 Nov 2004 13:24:24 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id iAU2mfQ17077 for ; Tue, 30 Nov 2004 13:18:41 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id X53DAJJY; Tue, 30 Nov 2004 13:18:40 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id iAU2mwal017020 for ; Tue, 30 Nov 2004 13:18:58 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id iAU2mwpd017019 for freebsd-stable@freebsd.org ; Tue, 30 Nov 2004 13:18:58 +1030 (CST) (envelope-from wilkinsa) Date: Tue, 30 Nov 2004 13:18:58 +1030 From: "Wilkinson, Alex" To: freebsd-stable@freebsd.org Message-ID: <20041130024858.GA16962@squash.dsto.defence.gov.au> Mail-Followup-To: freebsd-stable@freebsd.org References: <62A29338972397468405C79C4FE13C3B013DDDD4@ex1.messagegate.local> <20041130023542.GA390@electra.cse.Buffalo.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20041130023542.GA390@electra.cse.Buffalo.EDU> User-Agent: Mutt/1.5.6i Subject: Re: Need source to TCP/IP 'connect()' X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 02:54:37 -0000 0n Mon, Nov 29, 2004 at 09:35:42PM -0500, Ken Smith wrote: > When 'fishing' for stuff in the kernel source code I find the tags > files kind of useful. In a kernel build directory (e.g. I usually > use src/sys/i386/compile/GENERIC on a 5.X machine, after config-ing > GENERIC) after doing a 'make depend' you can do 'make tags'. It > will usually fail once it starts to process the modules because it > can't find 'gtags' but by then it's already built what is most useful. > > Once the tags file is built in the kernel build directory you can > do something like: > > vi -t connect > > and it will start up vi with the cursor at the beginning of that > function. It's not perfect (sometimes it can't find a function) > but for the most part it works OK. > > In this case it found connect() in /usr/src/sys/kern/uipc_syscalls.c > (I was using a RELENG_5 source tree). Ken, This looks useful, however, even after a buildkernel all I have is a CVS dir in /usr/src/sys/i386/compile/. Did u mean /usr/obj/usr/src/sys/GENERIC ? When u say "config-ing", do u mean running config(8) manually ? -aW