LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News
User Name
Password
Linux - News This forum is for original Linux News. If you'd like to write content for LQ, feel free to contact us.
All threads in the forum need to be approved before they will appear.

Notices


Reply
  Search this Thread
Old 03-31-2005, 10:44 PM   #1
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
year 2038 problem


i am convinced for this problem
but what is the solution for this for the existing setups
do we all need to migrate then

http://www.howstuffworks.com./question75.htm

regards
 
Old 04-04-2005, 09:25 PM   #2
cooldave
LQ Newbie
 
Registered: Oct 2004
Location: Colorado
Distribution: Slackware64-current and 15.0
Posts: 24

Rep: Reputation: 0
Hmmm,

Well, that is just a short 33 years in the future.
I think back to what I was running 33 years ago- I don't tink we need to worry about migrating yet?

Good food for thought. -CD-
 
Old 04-04-2005, 09:33 PM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
what i was looking is that it may come very late but is only migration the only solution to this problem

regards
 
Old 04-04-2005, 09:42 PM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Hmmm, my son is 4 now. I'll get him started on a solution and get back to you in 2037. He should have something buy then...

Hope I am around to find out what it is.

KC
 
Old 04-04-2005, 10:01 PM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
This is not a very serious problem. Apparently it has to do with the standard C library time.h.

A reimplementation of time.h file would solve it. Then of course, recompiling existing applications which use time.h with the new version of the library.

Quote:
From the original article
This problem is somewhat easier to fix than the Y2K problem on mainframes, fortunately. Well-written programs can simply be recompiled with a new version of the library that uses, for example, 8-byte values for the storage format. This is possible because the library encapsulates the whole time activity with its own time types and functions (unlike most mainframe programs, which did not standardize their date formats or calculations). So the Year 2038 problem should not be nearly as hard to fix as the Y2K problem was.

Last edited by vharishankar; 04-04-2005 at 10:03 PM.
 
Old 04-04-2005, 10:43 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
Quote:
Originally posted by Harishankar
This is not a very serious problem. Apparently it has to do with the standard C library time.h.

A reimplementation of time.h file would solve it. Then of course, recompiling existing applications which use time.h with the new version of the library.
i do not understand how do u intend to o solve the given problem

regards
 
Old 04-04-2005, 10:45 PM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
We cannot solve it. It's the programmers who developed the C libraries who would solve it.

We must merely recompile existing programs which use the time library against a new version of time.h which allows for large integers to be stored in the time data.
 
Old 04-04-2005, 10:49 PM   #8
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Current time.h has a limitation. Currently the format used by time.h is being stored in terms of seconds since Jan 1, 1970. In 2038, the integer would overflow because of the limitation of the integer data type.

Once the library is changed to accomodate integer from 4 bytes to 8 or 16 bytes, then the problem is solved.

Existing applications have to merely recompile against the new version of the library. That's all.
 
Old 04-04-2005, 11:03 PM   #9
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
year 2038 problem
Hmmm, learn enough now to make enough money to pay my beer bill then?
 
Old 04-04-2005, 11:46 PM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
ys then we need to change this in all and maybe a patched kernel and OS will solve this

regards
 
Old 04-08-2005, 07:54 PM   #11
glimmy
Member
 
Registered: Apr 2005
Location: Minnesota
Distribution: slackware
Posts: 54

Rep: Reputation: 15
What about C++? It could be possible that C will become obsolete, or fade into the background
 
Old 04-08-2005, 10:23 PM   #12
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
hi

i do not think unix/linux can migrate to C++ that easily
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
1 year from now... ghostwalker Linux - General 18 01-13-2006 08:38 PM
I've been here for a year now KungFuHamster General 7 02-25-2004 09:55 PM
LILO Problem in New Year samxiao Linux - Software 10 01-01-2004 11:38 AM
problem with Year net card of 8RDA+ nisten Linux - Networking 0 07-19-2003 04:04 AM
10 year newbie here, nvidia problem jack gardener Linux - Software 5 12-10-2001 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - News

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration