From owner-freebsd-arch Sun Oct 28 11:23:55 2001 Delivered-To: freebsd-arch@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 468E537B401 for ; Sun, 28 Oct 2001 11:23:53 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id f9SJNpI06845; Sun, 28 Oct 2001 11:23:51 -0800 (PST) (envelope-from dillon) Date: Sun, 28 Oct 2001 11:23:51 -0800 (PST) From: Matthew Dillon Message-Id: <200110281923.f9SJNpI06845@apollo.backplane.com> To: Jeroen Ruigrok/Asmodai Cc: arch@FreeBSD.ORG Subject: Re: illegal &time_t useage in /usr/src References: <200110280638.f9S6cuA99947@apollo.backplane.com> <20011028102623.X96876@daemon.ninth-circle.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :-On [20011028 08:00], Matthew Dillon (dillon@apollo.backplane.com) wrote: :>./contrib/binutils/bfd/elf32-mips.c: unmodified: line 8584 of 9049 [94%] :>./contrib/gcc/mips-tdump.c: unmodified: line 776 of 1606 [48%] :>./contrib/ipfilter/ipmon.c: unmodified: line 496 of 1282 [38%] :>./contrib/ipfilter/ipmon.c: unmodified: line 717 of 1282 [55%] :>./contrib/gcc.295/mips-tdump.c: unmodified: line 776 of 1606 [48%] :> :>./crypto/heimdal/appl/dceutils/k5dcecon.c: unmodified: line 186 of 791 [23%] :> (krb5_timestamp is a krb5_int32) : :Any chance of committing this script to src/tools? : :-- :Jeroen Ruigrok van der Werven/Asmodai asmodai@[wxs.nl|freebsd.org|xmach.org] Kinda hard to commit a human being :-) Something like the below, reidrect the output to a file and then go vi `cat filename` and run through the cases manually. #!/bin/tcsh # # (expected to be in /usr/src) foreach i ( `find . -type f -name "*.c" -or -name "*.h"` ) fgrep '(time_t *)' $i >& /dev/null if ( $status == 0 ) then echo $i endif end Repeat for instances of 'localtime', 'ctime', and 'time (' or 'time(' (for which there are hundreds). -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message