From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 1 08:06:09 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 4590516A4CE; Mon, 1 Mar 2004 08:06:09 -0800 (PST) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id B55BE43D2F; Mon, 1 Mar 2004 08:06:08 -0800 (PST) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) i21G67a7060291; Mon, 1 Mar 2004 17:06:07 +0100 (CET) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.10/8.12.10/Submit) id i21G62hC060290; Mon, 1 Mar 2004 17:06:02 +0100 (CET) (envelope-from marius) Date: Mon, 1 Mar 2004 17:06:02 +0100 From: Marius Strobl To: Maxime Henrion Message-ID: <20040301170602.A60183@newtrinity.zeist.de> References: <20040301145508.GA27240@seekingfire.com> <20040301150312.GQ35475@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20040301150312.GQ35475@elvis.mu.org>; from mux@freebsd.org on Mon, Mar 01, 2004 at 04:03:12PM +0100 X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.24.0.5; VDF 6.24.0.29 (host: newtrinity.zeist.de) 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 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 16:06:09 -0000 On Mon, Mar 01, 2004 at 04:03:12PM +0100, 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 -- > > > > Luckily this isn't a box where I care much about accounting, but a > > Heads-Up in the conversion notes might be warranted. > > > > -T > > This is probably because the time is stored as a 32-bits integer in > /var/run/utmp and /var/log/wtmp. > > from /usr/include/utmp.h : > > %% > struct lastlog { > int32_t ll_time; > char ll_line[UT_LINESIZE]; > char ll_host[UT_HOSTSIZE]; > }; > > struct utmp { > char ut_line[UT_LINESIZE]; > char ut_name[UT_NAMESIZE]; > char ut_host[UT_HOSTSIZE]; > int32_t ut_time; > }; > %% > > I think there is a utmpx pseudo-standard that could help with this > problem. I also seem to remember someone was working on this but I have > no idea where it's at nowadays. > Well, I see this on i386 (with 32bit time_t), too.