Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 1999 15:39:25 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        ayan@kiwi.datasys.net
Cc:        current@freebsd.org
Subject:   Re: utmp & last
Message-ID:  <199907122239.PAA35065@vashon.polstra.com>
In-Reply-To: <199907100928.FAA79011@kiwi.datasys.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199907100928.FAA79011@kiwi.datasys.net>,
Ayan George  <ayan@kiwi.datasys.net> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907122239.PAA35065>