Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Jerome H. Fine" <everyone@nospam.com>
Subject: Re: Y3K for PDP-11 Operating Systems
Date: Tue, 03 May 2011 12:09:48 -0400	[thread overview]
Message-ID: <4dc028fc$0$311$14726298@news.sunsite.dk> (raw)
In-Reply-To: <4dc1e27c.40366475@news.tpgi.com.au>

[-- Attachment #1: Type: text/plain, Size: 13145 bytes --]

If anyone else (other than Ian) has anything to suggest
or opinions on Y3K, their suggestions and comments
will be greatly appreciated - even if they are negative
comments as some of Ian's are concerning Y3K, in
particular for RT-11.

One minor point with version numbers for RT-11.
Officially, the version number is V05.07 for RT-11.
However, many individuals use V5.7 and both are
acceptable and mean the identical release.

TSX-Plus uses V6.50 for the version number
and both digits are required.   The next minor
release would be V6.51 of TSX-Plus.

When Y3K is added, I suggest that V05.08 be
used for RT-11 and V6.60 for TSX-Plus.

 >Ian Hammond (paramucho) wrote:

>>On Mon, 04 Apr 2011 09:12:48 -0400, "Jerome H. Fine" wrote:
>
>>Is there any interest in extending any of the PDP-11 operating systems
>>so that they are able to support dates at least until 3000?  While my
>>personal interest lies with RT-11, I am curious if anyone has looked
>>at the requirements for any of the other PDP-11 operating systems
>>to determine what is required for Y3K date support?  In addition,
>>are the resources (technical knowledge, files to make the required
>>changes and hardware to support the development) available?
>>
>My notes here refer to RT-11-based systems only. RSX and RSTS present
>different sets of issues.
>  
>
Actually, other than the fact that the dates (when various
portions of the code which handles the date) breaks, I
suggest that the issues are essentially the same.  At some
future year, (2100 for V05.07 of RT-11), the date will
not be handled correctly.

>The original RT-11 date field was Y2K-expanded from 5-bits to 7-bits
>extending the original 1972-2004 field to 1972-2099. These operating
>system extensions are available in RT-11 V5.7, RUST/SJ and via user
>modifications. RUST/XM also has the extensions but has not been
>released. I am not sure whether TSX/plus had a Y2K update.
>
V6.50 of TSX-Plus also supports the date until 2099.
The only change to the date code was in the Resident
Monitor (well also in the KMON equivalent which
displays and sets the date) for the rollover from year
to year.  The EMT requests, .DATE and .SDTTM
were essentially unchanged.  The rest of the TSX-Plus
code uses the standard DEC utilities.  If Y3K support
is produced for RT-11, then it will be a small additional
effort to add Y3K support for TSX-Plus.

>RUST and TSX do not include many of the significant RT-11 applications
>such as MACRO and LINK. Patches for some of these utilities have been
>made available separately. Without the patches the only problem is
>usually garbeled dates in listings.  There was at least one
>operational issue, but it was easily resolved.
>  
>
Most RT-11 users are not aware, but the V05.06
release of MACRO.SAV in V05.06 of RT-11
in 1992 was already Y2K compliant.  However,
since only the last two digits of the year were
displayed for the date, it was not apparent until
January 1st, 2000 that was the case.  The file
MACRO.SAV released with V05.07 of RT-11
is identical to the MACRO.SAV released with
V05.06 of RT-11, as are many of the other SAV
files which did not have any date dependencies.

For most users of MACRO.SAV, the primary
bug (no support for running as a system job when
a cross-reference table is requested) is not a problem.
However, prior to V05.06 of RT-11, when a
cross-reference table was requested or some
of the device drivers were not loaded, running
MACRO.SAV as a virtual job (using VBGEXE
to initiate MACRO.SAV) was not always successful.
These problems have been fixed, but the documentation
is not complete.

>TSX and RUST systems also (compatibly) implement a time-of-day field
>in RT-11 directories. The time-of-day, in seconds, is divided by three
>to fit into a 16-bit word, along with a flag bit.
>  
>
What is the flag bit used for?

>RT-11 V5.4 and RT-11 V5.5 were the last two really successful releases
>of the mother system. V5.6 had very little take-up IIRC, indeed, I
>seem to remember the RT-11 team being disappointed at the time. V5.7
>was the MENTEC Y2K maintenance release--I doubt that it is very
>widespread. Thus, my guess is that most systems running DEC RT-11
>today probably have incorrect date information being displayed.
>  
>
Actually, V05.06 was a significant improvement over V05.05 of
RT-11, but I doubt that many programs use split I/D virtual space.
The use of virtual jobs is must more transparent and the problem
of running MACRO.SAV / CREF.SAV as virtual jobs when device
drivers need to be loaded has also been solved.  Users of previous
releases of RT-11 still have those problems and the code in the
versions of MACRO.SAV from prior releases of RT-11 has been
fixed as well, just not released until the documentation is complete.

>With MENTEC gone the original version of RT-11 has been orphaned. If
>RT-11 is ever placed in the public domain then I think we will
>probably see binary kits and documentation become freely available,
>and perhaps even sources. At present that is unknowable to this
>writer. But, in any case, we are clearly not going to see the date
>issue resolved in a future release of RT-11.
>  
>
I assume then that you have decided to avoid adding Y3K code
to RT-11.  That might not be the case with everyone else, especially
since the individual writing this response has the clear intention to
add Y3K code to RT-11.  In fact, the intention of starting this
thread is to request comment from interested parties.

>I suppose it is conceivable that RT-11 might still be in real use in
>2099 at a handful of sites, however, if that is the case then they
>will almost certainly be turn-key systems running a dedicated
>application and will not be affected by a nonsense date (and, indeed,
>probably already have nonsense dates today). Thus, I don't think there
>is much need to worry about real-world RT-11 use in ninety years time.
>  
>
I agree.  From the real DEC PDP-11 side of the fence, it seems
obvious that there will be almost no real DEC PDP-11 hardware
still in operation.  It also seems doubtful  that Ersatz-11 will still
be supported in 89 years, certainly not by John Wilson.  And I
will not be here to support RT-11 after 2099.  However, SIMH
is written in "C" and will probably still be running.  There just might
be a few commercial sites which still want to run RT-11 and find
that SIMH is a reasonable solution.

For hobby users, the situation is somewhat different.

Academic investigation of 16 bit CPUs may also maintain some
interest in RT-11.

It is possible that DEC was the primary cause of the PDP-11
falling by the wayside as VMS took over most of the resources
at DEC.  A much faster version of the PDP-11 CPU was produced
by QED, but probably never sold enough to become popular.  Plus,
with DEC no longer a functioning company, there was no longer any
commercial focus to support the PDP-11 operating systems and make
any enhancements, let along bug fixes.

>There is, however, another reason to keep RT-11 systems ticking along
>and that's because of the role played by DEC operating systems in the
>history of computing. The argument that people who know the system in
>some detail are best placed to do the maintenance work is valid.
>  
>
Well, we do agree on this point!!!!!!!!!!!!!!!!!!!!!!!!!!!!

>So, assume we want to run RT-11 post-2099. Two solutions suggest
>themselves. 
>
>The first solution is to extend the RT-11 date field. This would have
>typically been implemented by adding an extra word to the date field,
>extending the date by 2^16 years. The system API would have been
>extended to handle the getting and setting of the extended date. An
>additional word would have been added to RT-11 directory entries,
>perhaps flagged in the directory status word that was added in V5.6 (I
>think). All the utilities would have been updated. Users would have
>been responsible for their own applications.
>  
>
The directory status word has been present in the very first
version of RT-11.  If you refer to a word in block 1 of a
file structured device, it was just unused.  If you refer to
the file entry in the directory segments, then that word
has been in use starting with the very first version of RT-11.
The minimum number of words in each file entry is SEVEN,
with 3 words (in Rad50 used for file name and type), the
length of the file in blocks, the file creation date and that
first word as status information about the file.  The seventh
word is used by RT-11 and TSX-Plus when a file is tentative
in one manner - TSX-Plus uses the word as the creation time
when the file is permanent.  RT-11 ignores the word when the
file is permanent.

Since the 16 bit word which specifies the date is now fully
utilized, you are correct that additional bits will be required.
I agree with your proposal that an additional word be used
for the Creation Date AND that the status word for the file
entry be flagged to reflect that additional information.  Actually
you would have flagged the entire directory, but I suggest
that it be done on a file by file basis so that old software
prior to 2100 is still able to function.

Obviously, users with programs which handle the date
would be required to change those programs.  That has
always been the way.  However, I also propose that
all of the new software be compatible with the old
software so that any old programs can use dates in
the same manner after 2099, they just will not notice
that the date is 2100 rather than 1972, etc.

>Now, let's assume that we do all this (even if it is at this more or
>less impossible). Would that actually help the "real use" folk? I
>think not. First, most of them would never find out that an updated
>version were available. Second, many of them would no longer be able
>to modify there own applications.
>  
>
We start to disagree at this point.  I believe that your points
are reasonable, just that they are not as valid as you believe.

>There would be a significant amount of work to do in implementing the
>date extension, but there are two more serious problems. The first is
>that the code would probably never be properly tested by an audience
>of a reasonable size. The second is that even if the project were
>completed there is no way to establish the date extension as a
>"standard" in some sense. It would remain essentially private code.
>  
>
Actually, if only one person writes the code for the date extension,
that will automatically become the standard.  I agree that getting
the word out will take a while, but over the next 89 years, it should
be possible to provide that information for interested parties.  The
only real difficulty is that any code which is developed in the next
20 years will not be commercially useful since companies refuse to
pay for a solution to a problem which is still more than 50 years
in the future.  So the code will have to be done for hobby users.
As for testing, there is not much to really test.  All of the code is
for the CPU and the locations for the code are the same as was
done for V05.07 of RT-11 when the Y2K bugs were fixed.  In
addition, the CE (Commercial Events, Common Era, Christian
Era or Gregorian - choose based on your religious preference)
Calendar has a 400 year cycle.  There are 146097 days or exactly
20871 weeks of 7 days each.  Dividing the year by 400 and using
the remainder along with the month and day number produces the
day of the week for all 400 year cycles.  The code can easily be
run 146097 times to test for each result.

And the code would not remain private if V05.08 is released to
all users.  In fact, it would then become to standard.

>The second solution is to recognise the need to provide managed
>environments for historical systems such as RT-11. This is easy in
>emulators where it is just a matter of faking the date information
>passed to an operating system (if the emulator supplies that
>functionality).
>  
>
A reasonable second solution which many RT-11 sites adopted
rather than purchase V05.07 of RT-11.  28 years is sufficient to
handle all dates until 2099.  Since 2100 is NOT a leap year, that
solution breaks down a bit.

>Even if the idea of extending the RT-11 date seems attractive (and I
>looked at idea in detail when doing the Y2K stuff to the RUST
>systems), in practical terms it would probably be a wasted effort.
>Thinking about how emulators might be better able to preserve and
>extend the lives of historical operating systems by providing managed
>environments would be more productive IMO.
>
You may be correct and probably are.  However, I find
I have more fun working with RT-11 code.  Even if no
one else provides any support, I may be able to complete
enough of the Y3K for RT-11 that it becomes the standard.

If anyone has any suggestions, they will be appreciated.

Ian, if you think it would be worth while to add the same Y3K
code to RUST so that the standard is compatible, please add
your input and suggestions.  The design is certainly far from
frozen.  Although I have added Y3K code to MACRO.SAV,
I realize that the form of output from the .GETD (Get Extended
Time and Date) EMT request could change.

Jerome Fine

[-- Attachment #2: Type: text/html, Size: 15614 bytes --]

  reply	other threads:[~2011-05-03 16:09 UTC|newest]

Thread overview: 146+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-04 13:12 Y3K for PDP-11 Operating Systems Jerome H. Fine
2011-04-04 13:40 ` Dennis Grevenstein
2011-04-04 18:58   ` Jerome H. Fine
2011-04-04 20:55   ` Johnny Billquist
2011-04-30 22:27 ` billy
2011-05-01 14:01   ` Jerome H. Fine
2011-05-01 17:27     ` Johnny Billquist
2011-05-02  0:53       ` Jerome H. Fine
2011-05-01 21:16 ` glen herrmannsfeldt
2011-05-02  0:54   ` Jerome H. Fine
2011-05-02  4:07     ` Johnny Billquist
2011-05-02 13:37       ` Jerome H. Fine
2011-05-02 15:39         ` Johnny Billquist
2011-05-02  5:15     ` glen herrmannsfeldt
2011-05-03  1:20 ` jjh
2011-05-03 13:18   ` Bob Koehler
2011-05-03 16:51     ` Jerome H. Fine
2011-05-03 17:50       ` VAXTREK Bob Koehler
     [not found]       ` <j0Y9tTme9SEK@eisner.encompasserve.org>
2011-05-03 18:39         ` Y3K for PDP-11 Operating Systems Henry Crun
2011-05-03 19:56           ` Jerome H. Fine
2011-05-03 22:52           ` onedbguru
2011-05-04  0:07             ` Bill Gunshannon
2011-05-04  5:16               ` Richard B. Gilbert
2011-05-04 13:01                 ` Bill Gunshannon
2011-05-04 14:19                   ` Richard B. Gilbert
2011-05-04 14:58                     ` Scott Dorsey
2011-05-04 16:33                     ` Bill Gunshannon
2011-05-05  1:51                       ` Richard B. Gilbert
2011-05-06 18:08                         ` G Cornelius
2011-05-06 18:47                           ` Richard B. Gilbert
2011-05-06 22:13                           ` Johnny Billquist
2011-05-08  1:00                             ` Rich Alderson
2011-05-08  1:51                               ` Johnny Billquist
2011-05-08 11:19                               ` Richard B. Gilbert
2011-05-09 21:32                                 ` Rich Alderson
2011-05-09 15:40                             ` Rob Brown
2011-05-09 15:43                               ` Johnny Billquist
2011-05-09 21:47                               ` vandys
2011-05-09 22:05                                 ` Johnny Billquist
2011-05-09 23:05                                   ` vandys
2011-05-09 23:20                                     ` Johnny Billquist
2011-05-10  0:12                                       ` vandys
2011-05-10  1:36                                         ` Johnny Billquist
2011-05-10  2:01                                         ` glen herrmannsfeldt
2011-05-10 13:31                                         ` Bob Koehler
     [not found]                                         ` <iqa6a7$gu8$1@dont-Organization: Encompasserve <fXiU1i6RQYr0@eisner.encompasserve.org>
2011-05-10 16:56                                           ` John Wallace
2011-05-10 17:50                                             ` Bob Koehler
2011-05-11 16:04                                               ` G Cornelius
2011-05-04 17:02                   ` Johnny Billquist
2011-05-04 17:20                   ` Bob Koehler
2011-05-04 18:10                   ` glen herrmannsfeldt
2011-05-04 19:21                     ` John Wallace
2011-05-04 22:06                     ` MetaEd
2011-05-05  3:17                       ` Johnny Billquist
2011-05-10 13:20                   ` Bob Koehler
2011-05-10 13:29                   ` Bob Koehler
2011-05-10 15:29                     ` Johnny Billquist
2011-05-10 17:16                       ` G Cornelius
2011-05-10 17:45                   ` Bob Koehler
2011-05-10 21:34                     ` Johnny Billquist
2011-05-10 17:58                   ` Bob Koehler
2011-05-10 21:36                     ` Johnny Billquist
2011-05-03 16:38   ` Jerome H. Fine
2011-05-03 11:28 ` paramucho
2011-05-03 16:09   ` Jerome H. Fine [this message]
2011-05-23  3:41   ` billy
2011-05-23  4:51     ` Johnny Billquist
2011-05-23 14:47       ` jjh
2011-05-23 15:04         ` Bill Gunshannon
2011-05-23 22:52           ` Johnny Billquist
2011-05-24  0:16             ` Bill Gunshannon
2011-05-24  0:40               ` Johnny Billquist
2011-05-24 12:58                 ` Bill Gunshannon
2011-05-24 14:02                   ` glen herrmannsfeldt
2011-05-24 14:36                   ` Johnny Billquist
2011-05-24 16:42                     ` Bill Gunshannon
2011-05-24 18:17                       ` Johnny Billquist
2011-05-24 20:07                         ` Bill Gunshannon
2011-05-25  1:07                           ` Rich Alderson
2011-05-25 10:34                           ` Johnny Billquist
2011-05-25 15:46                             ` Bill Gunshannon
2011-05-25 23:00                               ` Johnny Billquist
2011-05-26 15:50                                 ` Fritz Wuehler
2011-05-26 16:53                                   ` Johnny Billquist
2011-05-26 20:20                                     ` Fritz Wuehler
2011-05-28 18:01                                 ` Bill Gunshannon
2011-05-26  0:58                               ` Rich Alderson
2011-05-26  1:23                                 ` glen herrmannsfeldt
2011-05-26 13:01                                   ` Bob Koehler
2011-05-27  0:54                                     ` glen herrmannsfeldt
2011-05-26 20:15                                   ` Rich Alderson
2011-05-26 23:56                                     ` glen herrmannsfeldt
2011-05-27 18:37                                       ` Rich Alderson
2011-05-27  0:02                                     ` glen herrmannsfeldt
2011-05-27  3:17                                       ` Johnny Billquist
2011-05-27 18:51                                         ` Rich Alderson
2011-05-27 19:48                                           ` Johnny Billquist
2011-05-27 18:35                                     ` Rich Alderson
2011-05-26  1:14                               ` Jerome H. Fine
2011-05-26  1:32                                 ` glen herrmannsfeldt
2011-05-26 20:39                                   ` Jerome H. Fine
2011-05-26 15:50                               ` Fritz Wuehler
2011-05-25  1:01                         ` Rich Alderson
2011-05-26 12:53                         ` Bob Koehler
2011-05-26 16:59                           ` Johnny Billquist
2011-05-26  8:03                       ` Fritz Wuehler
2011-05-26 14:21                         ` paramucho
2011-05-26 18:50                           ` billy
2011-05-27 11:58                             ` paramucho
2011-05-27 17:23                               ` billy
2011-05-26 17:04                         ` Johnny Billquist
2011-05-27  1:30                           ` Fritz Wuehler
2011-05-27  2:17                             ` Scott Dorsey
2011-05-27  3:26                             ` Johnny Billquist
2011-05-30 21:09                             ` John Wallace
2011-05-31  1:15                               ` Johnny Billquist
2011-05-31 18:02                               ` jjh
2011-05-31 20:54                                 ` Bob Koehler
2011-05-31 21:37                                   ` glen herrmannsfeldt
2011-05-25  2:59                     ` Jerome H. Fine
2011-05-25 10:51                       ` Johnny Billquist
2011-05-25 12:36                         ` Jerome H. Fine
2011-05-25 17:25                           ` Tom Lake
2011-05-25 18:01                             ` Jerome H. Fine
2011-05-25 18:44                           ` Johnny Billquist
2011-05-26  1:20                           ` Rich Alderson
2011-05-26 16:53                             ` Rob Brown
2011-05-26 20:27                               ` Rich Alderson
2011-05-27  3:27                                 ` Johnny Billquist
2011-05-26 20:38                             ` Jerome H. Fine
2011-05-27  4:44                               ` Johnny Billquist
2011-05-24 12:02             ` paramucho
2011-05-23 14:48       ` Jerome H. Fine
2011-05-23 22:46         ` Johnny Billquist
2011-05-24  0:19           ` Bill Gunshannon
2011-05-24  0:43             ` Johnny Billquist
2011-05-25 18:41             ` Jerome H. Fine
2011-05-24  2:54         ` billy
2011-05-24 13:03           ` Bill Gunshannon
2011-05-24 14:39             ` Johnny Billquist
2011-05-24 15:10               ` billy
2011-05-24 15:48                 ` Johnny Billquist
2011-05-24 16:54               ` Bill Gunshannon
2011-05-24 14:42             ` billy
2011-05-24 16:56               ` Bill Gunshannon
2011-05-25 18:05               ` Jerome H. Fine
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