From owner-freebsd-sparc64@FreeBSD.ORG Tue Mar 30 10:05:22 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 51A7816A4CF for ; Tue, 30 Mar 2004 10:05:22 -0800 (PST) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C09543D2F for ; Tue, 30 Mar 2004 10:05:22 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 21264 invoked from network); 30 Mar 2004 18:05:21 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail4.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 30 Mar 2004 18:05:21 -0000 Received: from hydrogen.funkthat.com (ixstoj@localhost.funkthat.com [127.0.0.1])i2UI5KOE084632; Tue, 30 Mar 2004 10:05:21 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i2UI5KNr084631; Tue, 30 Mar 2004 10:05:20 -0800 (PST) Date: Tue, 30 Mar 2004 10:05:20 -0800 From: John-Mark Gurney To: RJ45 Message-ID: <20040330180520.GT567@funkthat.com> Mail-Followup-To: RJ45 , freebsd-sparc64@freebsd.org References: 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: freebsd-sparc64@freebsd.org Subject: Re: problem with dates 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: Tue, 30 Mar 2004 18:05:22 -0000 RJ45 wrote this message on Tue, Mar 30, 2004 at 10:39 -0700: > even if this si the current time: > > Tue Mar 30 19:39:04 CEST 2004 > > anyone got this problem? > thanks Looks like the code is broken in that it assumes that time_t is an int, and passes a pointer to a time_t to another function that casts it to an integer... This would turn up this problem since time_t's are now 64bits, and int's are 32bits, and since sparc64 is a big endian platform, the first 32bits of a 64bit time_t are usually zero... Tell the author of the program that his code is broken. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."