TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Ian Moote
from: Jonathan de Boyne Pollard
date: 1999-12-02 11:42:06
subject: OS/2 kernel immunity from the Century Bug

 JP>> (The Dos32GetDateTime() function is still there, for backwards
 JP>> compatibility and ease of porting 16-bit applications, but this is
 JP>> really the wrong way to obtain the system time on 32-bit OS/2, since
 JP>> it hits the clock hardware directly.)

 IM> Are you saying that DOSQuerySysInfo() does not get its information 
 IM> directly from the clock? If not, how does it keep track of the time?

DosQuerySysInfo() can reasonably only do one of two things.  Either the kernel 
has a 64-bit integer which it initialises from the RTC at boot time and
updates once per second thereafter and whenever an application explicitly sets 
the clock time (which is the way that I'd do it), or it calculates the 64-bit
integer on the fly from the information contained in the 16-bit global
infoseg.

I couldn't tell you which it does without access to the source of the OS/2
kernel, which I don't have.

 ¯ JdeBP ®

--- FleetStreet 1.22 NR
* Origin: JdeBP's point, using Squish (2:257/609.3)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.