From: jnf <jnf@innocence-lost.us>
To: christos gentsis <christos_gentsis@yahoo.co.uk>
Cc: Valdis.Kletnieks@vt.edu, Bill Davidsen <davidsen@tmr.com>,
linux-os@analogic.com,
"Srinivas G." <srinivasg@esntechnologies.co.in>,
linux-kernel-Mailing-list <linux-kernel@vger.kernel.org>
Subject: Re: Y2K-like bug to hit Linux computers! - Info of the day
Date: Sat, 14 May 2005 02:46:30 -0700 (MST) [thread overview]
Message-ID: <Pine.LNX.4.62.0505140240250.14650@fhozvffvba.vaabprapr-ybfg.arg> (raw)
In-Reply-To: <4285C030.1080706@yahoo.co.uk>
firstly lemme say im hardly any authority, so feel free to disregard
anything I have to say, lord knows everyone else does.
I would say that this is more or less a known issue, and not really an
issue- at least not as far as I can see- I would hope that by 2038 64b (or
larger) int's would be standard.
> but shall i ask how
> counting something that increase can give a negative number?
what would you expect MAX_INT+1 to yield?
as a short example:
submission$ cat test.c
int main(void) {
signed short int count = 0;
while(count >= 0 ) {
printf("count: %d\n", count++ );
}
printf("count: %d\n");
}
submission$ gcc -o test test.c
submission$ ./test
[...]
count: 32767
count: -1
> second... is the counter on the software? until now i thought that the counter
> is a clock on the hardware...
IIRC the software keeps track of the count, so even though its physically
a hardware clock, the software still has to count it- if a 32b int can
only represent 2^32-1, then we will hit a wall, for our purposes this will
be in 2038, unless by then linux switches to a 64b counter, which is quite
probably (and possibly already done under amd64 and the likes?)
> so how is this related with Linux? then the
> counter overflow... this will be a hardware issue... not a software issue (
> the software will have to support the bigger hardware counter but to do that
> the bigger hardware has to exist first...)
I could be wrong here, but I don't think the hardware even keeps track of
the clock ticks, rather it just ticks and lets the software keep track.
> BTW is there anyone that plan to use his embedded devise until 2038????
not exactly an embedded device however I have my feet resting on an ibm
ps/2 286 running minix. Some people hold onto things longer than other
people.
next prev parent reply other threads:[~2005-05-14 10:04 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 11:43 Y2K-like bug to hit Linux computers! - Info of the day Srinivas G.
2005-05-13 11:48 ` Matthias-Christian Ott
2005-05-13 12:17 ` Richard B. Johnson
2005-05-13 16:07 ` Lee Revell
2005-05-13 12:22 ` Denis Vlasenko
2005-05-13 12:27 ` Richard B. Johnson
2005-05-13 12:43 ` Richard B. Johnson
2005-05-13 20:36 ` Bill Davidsen
2005-05-13 20:47 ` Valdis.Kletnieks
2005-05-13 21:07 ` Chris Friesen
2005-05-13 21:22 ` Valdis.Kletnieks
2005-05-13 23:10 ` David Lang
2005-05-13 21:24 ` Alan Cox
2005-05-14 9:09 ` christos gentsis
2005-05-14 9:46 ` jnf [this message]
2005-05-14 10:37 ` christos gentsis
2005-05-14 10:20 ` Willy Tarreau
2005-05-15 20:25 ` Richard B. Johnson
2005-05-13 14:37 ` DervishD
2005-05-13 15:19 ` randy_dunlap
2005-05-13 15:24 ` DervishD
2005-05-13 16:11 ` Alan Cox
2005-05-15 16:20 ` Helge Hafting
2005-05-16 2:09 ` Paul Jakma
2005-05-14 12:46 Matthew Geier
2005-05-14 20:27 ` christos gentsis
2005-05-14 21:19 ` Valdis.Kletnieks
2005-05-15 1:04 ` Gene Heskett
[not found] <43GQ7-5qy-5@gated-at.bofh.it>
2005-05-14 13:41 ` Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.62.0505140240250.14650@fhozvffvba.vaabprapr-ybfg.arg \
--to=jnf@innocence-lost.us \
--cc=Valdis.Kletnieks@vt.edu \
--cc=christos_gentsis@yahoo.co.uk \
--cc=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=srinivasg@esntechnologies.co.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).