Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2000 15:19:16 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Marc Tardif <intmktg@CAM.ORG>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: finding source to functions
Message-ID:  <20000929151915.O27736@fw.wintelcom.net>
In-Reply-To: <Pine.LNX.4.10.10009291637130.17580-100000@Gloria.CAM.ORG>; from intmktg@CAM.ORG on Fri, Sep 29, 2000 at 04:39:59PM -0400
References:  <Pine.LNX.4.10.10009291637130.17580-100000@Gloria.CAM.ORG>

next in thread | previous in thread | raw e-mail | index | archive | help
* Marc Tardif <intmktg@CAM.ORG> [000929 13:37] wrote:
> How can I find the source to specific functions in /usr/src/sys? I tried
> running ctags (find /usr/src/sys/ -type f -print | xargs ctags -w), but it
> dumps core because it can't accept so many args. I then tried creating a
> tags file for each subdirectory like so:
> for i in /usr/src/sys/
> do
>   if test -d $i
>   then
>     cd $i
>     find ./ -type f -print | xargs ctags -w
>     cd ..
>   fi
> done
> 
> But that didn't work either. Any suggestions to make browsing the source
> code easier?

Sorta lame but:

cd /usr/src/sys
grep ^function */*
works for me.

of course there's a bunch of stuff in ports/textproc and devel that
may also help.  cscope and glimpse are nice.

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000929151915.O27736>