From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 1 13:19:59 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C5F216A4CF for ; Mon, 1 Mar 2004 13:19:59 -0800 (PST) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17C1543D3F for ; Mon, 1 Mar 2004 13:19:59 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 1879 invoked from network); 1 Mar 2004 21:19:58 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 1 Mar 2004 21:19:58 -0000 Received: from hydrogen.funkthat.com (ronkdq@localhost.funkthat.com [127.0.0.1])i21LJr7Y092786; Mon, 1 Mar 2004 13:19:54 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i21LJqMa092779; Mon, 1 Mar 2004 13:19:52 -0800 (PST) Date: Mon, 1 Mar 2004 13:19:52 -0800 From: John-Mark Gurney To: Garance A Drosihn Message-ID: <20040301211952.GA56805@funkthat.com> Mail-Followup-To: Garance A Drosihn , Maxime Henrion , Tillman Hodgson , sparc64@freebsd.org References: <20040301145508.GA27240@seekingfire.com> <20040301150312.GQ35475@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: sparc64@freebsd.org Subject: Re: Minor problem with 64bTT: monthly accounting figures X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 21:19:59 -0000 Garance A Drosihn wrote this message on Mon, Mar 01, 2004 at 14:03 -0500: > At 4:03 PM +0100 3/1/04, Maxime Henrion wrote: > >Tillman Hodgson wrote: > >> Look a little odd this month: > >> > >> Subject: caliban.rospa.ca monthly run output > >> > >> Doing login accounting: > >> root 0.84 > >> total -298848.27 > >> toor -298849.12 > >> > > > -- End of monthly output -- > > This would be from the output of the 'ac' command. I tried > this on my 64-bTT machine, and it seemed to be working OK. > > >This is probably because the time is stored as a 32-bits integer > >in /var/run/utmp and /var/log/wtmp. > > If the time-value is defined as a fixed 32-bit integer (instead > of being time_t), then the records themselves should be fine. The > records (as written) won't be changing in size due to this change. > > So, if there is a bug here then it'll probably be in the 'ac' > program. That's my guess, at least. We can look into that some > more, but don't need to address it right away. Could be that ac is assuming that sizeof(int32_t) == sizeof(time_t), and so it casting a pointer to a time_t as a pointer to an int32_t... This is usually the case.... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."