[1544] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next next in chain last in chain last

Re: 1.1.8 Win32 genesis binaries

daemon@ATHENA.MIT.EDU (Sat Jan 22 18:12:51 2000 )

From: "Jon A. Lambert" <jlsysinc@ix.netcom.com>
To: <coldstuff@cold.org>
Date: Sat, 22 Jan 2000 18:06:34 -0500
Reply-To: coldstuff@cold.org

Psyclone wrote:
>mtime() always returns 0. Also a library issue -- Win32 apparently
>doesn't have a function to return microseconds.

Hmm.. I'll have a look around.

>ctime() and friends throw when given numbers < 18000. Borland (what I
>used to compile genesis) has a broken time utility which causes genesis
>to crash when these functions are given low numbers.

I never got a response back from Borland on this, however I did notice
something.  time() returns seconds from 1/1/70, already adjusted for
the timezone.  It is correct.  However ctime() however must be making 
an adjustment to GMT at some point during it's calculations, although it
does return the correct date.  The 18000 is of course 5 hours off GMT 
from EST (where I've been playing).  I suspect anybody using the port in 
PST (-8 GMT) will crash between values of 18001 and 28800 seconds,
though I haven't tested it.  I'm not exactly sure where ctime() is fetching the
timezone from.  Loading it may resolve the problem.

>The pids are negative. No idea why. Win32 thing I guess.


--*     Jon A. Lambert - TychoMUD Email: jlsysinc@nospam.ix.netcom.com     *--
--*     Mud Server Developer's Page <http://jlsysinc.home.netcom.com>      *--
--* "No Free man shall ever be debarred the use of arms." Thomas Jefferson *--