Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: peter@baileynm.com (Peter da Silva)
Subject: The Year 2038 problem. Re: UNIX, UNIX everywhere...
Date: 1998/09/22	[thread overview]
Message-ID: <6u85mb$sc7@web.nmti.com> (raw)
In-Reply-To: 6u7b7b$o1b$1@canopus.cc.umanitoba.ca

In article <6u7b7b$o1b$1@canopus.cc.umanitoba.ca>,
Walter Roberson <roberson@ibd.nrc.ca> wrote:
>In article <6u5kbj$rlv$1@news.clinet.fi>,
>Kristoffer Lawson  <setok@oksidi.fishpool.com> wrote:
>:2038 is really not a problem. An abstract datatype has been used for
>:the number of seconds past epoch. Currently it's usually 32-bit, but
>:there's no reason to just switch to 64-bit. All well coded applications
>:will work fine (and who cares about badly coded?).

>You'd have to replace many binaries simultaneously -- you could
>not use your old binaries with the new time structure. At all.

The latter is true, but the former isn't. You just assign new system
call numbers to the "wide time" system calls, and after enough time you
stop providing the old ones. There's nothing sacred or magic about
system call numbers, and the major/minor shared library version handles
the system library routines that know about times.

The tough part as you say are binary file formats. I think a flag day
there is inevitable.

>You are also going to have problems with any binaries that assume that
>time differences can be stored in 32 bits.

There shouldn't be too many of those. There are a lot of programs that assume
time differences can be stored in "a long", but hopefully the LP64 model
for 64-bit UNIX will be standard by 2038. Hell, by 2038 we'll probably have
arguments about 128 bit longs.

2038 is a long way off, and the odds that 32 bit longs will be anything but
a memory by then are slim.

I mean, look... that's ten years longer than UNIX has existed. Go back half
that time:

Version 7 had just come out. Version 6 had a 16-bit system call model, lseek
was new in V7... I think unsigned integers and longs were new in V7. They'd
just gone through the same sort of transition we're talking about, with the
old interfaces left hanging around for a while. The shift from 32 to 64 bit
file offsets, at least in BSD, was a lot less traumatic.

We could go to 32 bit time in BSD right now. There's two main BSDs: Digital
UNIX and the various 4.4-lite derivitives. They all use 64 bit off_t, and
they could handle 64 bit time_t quite handily.

I imagine some platforms will make a mess of it... we went through hell when
we got Solaris boxes in and had to deal with their off_t botches. But it's
not inherently nearly as much of a problem as the year 2000...

-- 
In hoc signo hack, Peter da Silva <peter@baileynm.com>
 `-_-'   "Milloin halasit viimeksi suttasi?"
  'U`
         "Tell init(8) to lock-n-load, we're goin' zombie slaying!"



  parent reply	other threads:[~1998-09-22  4:00 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-12  4:00 UNIX, UNIX everywhere George
1998-09-14  4:00 ` Dark Science
1998-09-14  4:00   ` Robert Brooke Gravitt
1998-09-15  4:00   ` Scott Elyard
1998-09-15  4:00   ` F Uy
1998-09-15  4:00   ` Kristoffer Lawson
     [not found]   ` <1dflxih.1lumqqc1vbnn5sN@pec-95.au4.m.uunet.de>
1998-09-19  4:00     ` Jay Davis
1998-09-20  4:00       ` EVILjosh
1998-09-21  4:00     ` TERENCE MURPHY
1998-09-21  4:00       ` Peter da Silva
1998-09-25  4:00         ` Tim Streater
1998-09-25  4:00           ` Peter da Silva
     [not found]             ` <1dfxjtw.xtskf31h9yiqkN@pec-53.au3.m.uunet.de>
1998-09-25  4:00               ` James Stutts
1998-09-26  4:00               ` Peter da Silva
1998-09-25  4:00           ` Jay Maynard
1998-09-21  4:00       ` Kristoffer Lawson
1998-09-22  4:00         ` Walter Roberson
1998-09-22  4:00           ` Thor Lancelot Simon
1998-09-22  4:00             ` The year 2038 problem. " Peter da Silva
1998-09-28  4:00             ` Walter Roberson
1998-09-29  4:00               ` Thor Lancelot Simon
1998-09-29  4:00                 ` Pat Gunn
1998-09-29  4:00                 ` Peter da Silva
1998-09-29  4:00                   ` jmfbahciv
1998-09-22  4:00           ` Peter da Silva [this message]
1998-09-22  4:00           ` Kristoffer Lawson
1998-09-21  4:00       ` Jay Maynard
1998-09-21  4:00       ` Remco Post
1998-09-21  4:00         ` TERENCE MURPHY
1998-09-22  4:00           ` Peter da Silva
1998-09-23  4:00             ` jmfbahciv
1998-09-23  4:00               ` Peter da Silva
1998-09-23  4:00                 ` Jonathan Stone
1998-09-23  4:00                   ` Peter da Silva
1998-09-24  4:00                   ` jmfbahciv
1998-09-24  4:00                 ` jmfbahciv
1998-09-28  4:00           ` Gregg E Economou
1998-09-21  4:00         ` Steve Allen
1998-09-21  4:00       ` Scott Elyard
1998-09-28  4:00       ` Gregg E Economou
1998-09-28  4:00         ` Walter Roberson
1998-09-28  4:00           ` Peter da Silva
1998-09-28  4:00             ` Jonathan Stone
1998-09-28  4:00               ` Peter da Silva
1998-09-28  4:00             ` Dave Olson
1998-09-28  4:00           ` Jonathan Stone
1998-09-28  4:00           ` Pat Gunn
1998-09-30  4:00       ` Gabriel Morales
1998-09-30  4:00         ` Bob Koehler
1998-09-30  4:00           ` Greg Sigman
1998-10-01  4:00             ` Kristoffer Lawson
1998-09-30  4:00         ` James Stutts
1998-10-04  4:00           ` G. Mark Stewart
1998-10-05  4:00             ` Mark & Suzanne (gcs might work)
1998-10-04  4:00               ` Pat Gunn
1998-10-06  4:00                 ` Terry Mathews
1998-10-01  4:00         ` Kristoffer Lawson
1998-10-01  4:00           ` J.A. Gutierrez
1998-10-01  4:00           ` Mark & Suzanne (gcs might work)
1998-10-02  4:00             ` Kristoffer Lawson
     [not found]               ` <1dgjk28.9kuhbu17eiovkN@pec-106.au2.m.uunet.de>
1998-10-08  4:00                 ` Joel Peterson
     [not found]                   ` <1dgmpt1.1e4he13h4q1qmN@pec-51.au3.m.uunet.de>
1998-10-10  4:00                     ` Joel Peterson
1998-10-12  4:00                     ` Gregg E Economou
     [not found]                       ` <1dgukvv.1ls1xvtti5r8aN@pec-38.au1.m.uunet.de>
1998-10-13  4:00                         ` Peter da Silva
1998-10-13  4:00                           ` James Stutts
1998-10-14  4:00                             ` Peter da Silva
     [not found]                           ` <1dgzy21.14ay3pjmkmzwuN@pec-21.au5.m.uunet.de>
1998-10-17  4:00                             ` Peter da Silva
     [not found]                               ` <1dh3gy1.1uhp5lfcekszkN@pec-102.au3.m.uunet.de>
1998-10-18  4:00                                 ` Peter da Silva
     [not found]                                   ` <1dh59l8.1owsqxi2osyu0N@pec-31.au5.m.uunet.de>
1998-10-19  4:00                                     ` Peter da Silva
     [not found]                                       ` <1dhb2fq.8b2k2x1lbz2o0N@pec-5.au3.m.uunet.de>
1998-10-27  5:00                                         ` Peter da Silva
1998-10-27  5:00                                         ` TTK Ciar
1998-10-19  4:00                                 ` Zsolt Szabo
1998-10-19  4:00                                   ` Scott Elyard
1998-10-19  4:00                               ` Dan Pop
1998-10-20  4:00                                 ` Peter da Silva
1998-10-08  4:00                 ` Kristoffer Lawson
1998-09-27  4:00 ` Ben Millard
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox