From owner-freebsd-current Mon Jul 12 15:40:23 1999 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 887EE15034 for ; Mon, 12 Jul 1999 15:40:18 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.1) with ESMTP id PAA15869; Mon, 12 Jul 1999 15:39:26 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id PAA35065; Mon, 12 Jul 1999 15:39:25 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Mon, 12 Jul 1999 15:39:25 -0700 (PDT) Message-Id: <199907122239.PAA35065@vashon.polstra.com> To: ayan@kiwi.datasys.net Subject: Re: utmp & last In-Reply-To: <199907100928.FAA79011@kiwi.datasys.net> Organization: Polstra & Co., Seattle, WA Cc: current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199907100928.FAA79011@kiwi.datasys.net>, Ayan George wrote: > > What seems strange is that they use the different data types to > store the same information (the time): > > struct lastlog { > time_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]; > long ut_time; > }; > > Not that there is any _real_ difference between long and time_t, On the Alpha, a long is 64 bits but a time_t is 32 bits. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "No matter how cynical I get, I just can't keep up." -- Nora Ephron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message