From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31474 invoked from network); 20 May 1999 04:45:21 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 20 May 1999 04:45:21 -0000 Received: from lucifer.its.latrobe.edu.au (lucifer.its.latrobe.edu.au [131.172.12.11]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id AAA27752 for ; Thu, 20 May 1999 00:06:08 -0400 Received: from hades (hades.its.latrobe.edu.au [131.172.12.108]) by lucifer.its.latrobe.edu.au (8.8.6/8.6.9) with SMTP id OAA31348 for ; Thu, 20 May 1999 14:06:00 +1000 (EST) Message-Id: <199905200406.OAA31348@lucifer.its.latrobe.edu.au> X-Sender: cchd@lucifer.its.latrobe.edu.au X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0.2 Date: Thu, 20 May 1999 14:06:00 +1000 To: axp-list@redhat.com From: Huw Davies Subject: Re: Converting time (since 01-01-1970) to Epoch In-Reply-To: <9905190951.ZM11753@dns.rgn.it> References: <199905181613.KAA20322@ellpspace.math.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 09:51 19/05/99 +0000, Franco Tassone wrote: >My conversion program does only a field's level assignments, and rewrites the >new file, due to different sizeof(long). >The resulting dates (ut_time in ru_utmp) are all garbled. >Any ideas ? SGI boxes are big endian whereas Linux (Intel and Alpha) are little endian. You will need to rearrange the order of the bytes as you copy them into the Linux structure. Huw Davies | e-mail: Huw.Davies@latrobe.edu.au Information Technology Services | Phone: +61 3 9479 1550 Fax: +61 3 9479 1999 La Trobe University | "If God had wanted soccer played in the Melbourne Australia 3083 | air, the sky would be painted green"