From: tls@panix.com (Thor Lancelot Simon)
Subject: Re: UNIX, UNIX everywhere...
Date: 1998/09/29 [thread overview]
Message-ID: <6uqio2$g5i@news1.panix.com> (raw)
In-Reply-To: 6un622$69s$1@canopus.cc.umanitoba.ca
In article <6un622$69s$1@canopus.cc.umanitoba.ca>,
Walter Roberson <roberson@ibd.nrc.ca> wrote:
>In article <6u7i0o$jre@news1.panix.com>,
>Thor Lancelot Simon <tls@rek.tjls.com> wrote:
>:In article <6u7b7b$o1b$1@canopus.cc.umanitoba.ca>,
>:Walter Roberson <roberson@ibd.nrc.ca> wrote:
>:>You are also going to have problems with any binaries that assume that
>:>time differences can be stored in 32 bits. Or even that time
>:>differences can be calculated at all (going to a 64 bit time_t does not
>:>imply that the system can do 64 bit arithmetic.) You might say that
>
>:Ibegyourscuseme? If you're not an idiot, it does. See "quad_t". Making
>:programmers' lives hell in that fashion smacks of SCO, or NT, or something.
>
>I checked both my ANSI C and POSIX.1 manuals. They contain
>no reference at all to 'quad_t'.
And did I say that they would?
>I have also checked the include files for IRIX 6.2 and IRIX 6.4
>with the complete SGI "7.2" compiler release installed. I find no
>definition and no references to quad_t.
>
>In my opinion, you should either post an exact section number
>reference to the ANSI C definition of quad_t, or you should post
>an apology.
Your opinion is silly.
>There is nothing in ANSI C or POSIX.1 that requires that 64 bit
>arithmetic be supported. ANSI C does require that time_t be an
>arithmetic type, so any compliant system that does not support 64
>bit arithmetic cannot have a 64 bit time_t. (The requirement that
>it be an arithmetic type eliminates structures or arrays
>as your time_t.)
Yes, I understand this.
The point is that your underlying hardware architecture doesn't have to
be able to do 64-bit arithmetic in single instructions in order for
your operating system to provide 64-bit arithmetic types. Expanding
operating system data types to 64 bits without providing the facility
to do arithmetic on them... is idiocy.
In practical terms, you'd have to be looney -- or maybe work for SCO or
Microsoft or someone like that, which is about the same -- to go stretching
the contents of sys/types.h to 64 bits without at least compiler support
for 64 bit arithmetic. Which is there in at least one compiler (GCC) for
just about every 32-bit architecture.
In 4.4BSD, the basic 64-bit data type happens to be called "quad_t", and if
you're compiling with GCC it's implemented with "long long". Obviously, you
need such a data type to stretch things like time_t to 64 bits, but who
cares? It's there, it's been there for a Long Time, and it works on 32-bit
architectures -- because off_t required it first.
"long long" or equivalent will be part of C9X, barring radical changes before
the standard's on paper. At least that's my understanding.
--
Thor Lancelot Simon tls@rek.tjls.com
"And where do all these highways go, now that we are free?"
next prev parent reply other threads:[~1998-09-29 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 ` Jay Maynard
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-21 4:00 ` Kristoffer Lawson
1998-09-22 4:00 ` Walter Roberson
1998-09-22 4:00 ` Kristoffer Lawson
1998-09-22 4:00 ` The Year 2038 problem. " Peter da Silva
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 [this message]
1998-09-29 4:00 ` Pat Gunn
1998-09-29 4:00 ` Peter da Silva
1998-09-29 4:00 ` jmfbahciv
1998-09-21 4:00 ` Jay Maynard
1998-09-21 4:00 ` Scott Elyard
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-28 4:00 ` Gregg E Economou
1998-09-28 4:00 ` Walter Roberson
1998-09-28 4:00 ` Pat Gunn
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 ` Peter da Silva
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 ` Kristoffer Lawson
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-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