Subject: Re: Compiler Symbols (Re: Compiling the kernel)
To: None <port-arm32@NetBSD.ORG>
From: Kjetil B. Thomassen <kjetil@thomassen.priv.no>
List: port-arm32
Date: 02/15/1998 10:54:31
On Sun 15 Feb, paul wrote:
>
> would tell you that is where it is defined. So a useful 'c' script in your
> NetBSD kernel compile directory would be:
>
> foreach f ( *.o )
> echo ==$f==
> nm $f | grep $1 # if you were typing this at a command like enter
> function name
> end
And in Bourne/Korn shell (sh/ksh) it would be:
for f in *.o
do
echo ==$f==
nm $f | grep $1
done
or
for f in *.o; do echo ==$f==; nm $f | grep $1; done
You should not use C Shell script. It is considered harmful,
and the UNIX Power Tools contains an article from the Net that
explains in detail why.
Personally I have now dropped Bourne Shell and am using Korn
Shell instead. I can do this since I all OSs I now use (including
NetBSD) has a Korn Shell implementation.
Kjetil B.
mailto:kjetil@thomassen.priv.no
http://login.eunet.no/~kjetilbt/