Date: Sat, 14 Jul 2001 18:58:47 +0200 From: Bernd Walter <ticso@mail.cicely.de> To: freebsd-alpha@freebsd.org Subject: Re: fstat pointersize patch Message-ID: <20010714185847.D23031@cicely20.cicely.de> In-Reply-To: <20010714182244.B23031@cicely20.cicely.de>; from ticso on Sat, Jul 14, 2001 at 06:22:44PM %2B0200 References: <20010714182244.B23031@cicely20.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--kXdP64Ggrk/fb43R Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Jul 14, 2001 at 06:22:44PM +0200, Bernd Walter wrote: > Compiling fstat produced a lot of warning and printed only the > lower part of the addresses. > The patch was made on -current as of 2001-03-28 on alpha and > test applied to a -current as of 2001-07-04 on i386. > The output on i386 looks the same as before. There is one difference I oversaw in the first mail: before each address 0x is printed which breaks sockstat even on i386. Attached is a patch for sockstat which handles alpha and i386 with my fstat patch from the first mail. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de --kXdP64Ggrk/fb43R Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="sockstat.pl.diff" Index: sockstat.pl =================================================================== RCS file: /vol/freebsd-cvs/src/usr.bin/sockstat/sockstat.pl,v retrieving revision 1.13 diff -u -r1.13 sockstat.pl --- sockstat.pl 2001/03/15 20:46:35 1.13 +++ sockstat.pl 2001/07/14 16:54:41 @@ -57,10 +57,10 @@ die("exec(netstat): $!\n"); } while ($line = <PIPE>) { - next unless ($line =~ m/^[0-9a-f]{8} /); + next unless ($line =~ m/^[0-9a-f]{8,16} /); chomp($line); @fields = split(' ', $line); - $netstat{$fields[0]} = [ @fields ]; + $netstat{"0x".$fields[0]} = [ @fields ]; } close(PIPE) or die("close(netstat): $!\n"); --kXdP64Ggrk/fb43R-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010714185847.D23031>