Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2002 19:43:45 +0100 (CET)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-hackers@FreeBSD.ORG, freebsd-sparc@FreeBSD.ORG
Subject:   Re: AWK/perl hacker needed to assist the Sparc64 port
Message-ID:  <200202131843.g1DIhjM71789@lurza.secnetix.de>
In-Reply-To: <20020212084918.A69309@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
David O'Brien <obrien@freebsd.org> wrote:
 > In rev 1.20 of sys/kern/vnode_if.pl Eivind converted this from a
 > Bourne+AWK script into a Perl script.

I wonder, why?

 > Well that just makes porting to
 > new architectures VERY difficult as the boot strapping of Perl 5 is quite
 > difficult.
 > 
 > A shell hacker could really help out the FreeBSD/sparc64 porting effort
 > by updating vnode_if.pl rev 1.19 to have all the functionality the perl
 > version has today.

http://www.secnetix.de/~olli/tmp/vnode_if.awk

It's a pretty straight-forward port of the perl version
(vnode_if.pl r1.28).  Output is the same, byte for byte
(including the vfs locks debug output when enabled).
It runs faster, is smaller and easier to read.  ;-)

I also took the opportunity to clean the code up and make
it style(9) compliant, as far as possible (it's an advan-
tage that awk syntax looks a lot like C).

It's a simple drop-in replacement.  In the kernel Makefile,
replace ``perl5 vnode_if.pl'' with ``awk -f vnode_if.awk''.

However, note that I've only tested it with gnu-awk.  It
_should_ run with the awk in -current, too, but I have no
way to test that right now.

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"All that we see or seem is just a dream within a dream" (E. A. Poe)

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




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