www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/08/26/10:05:11

Date: Fri, 26 Aug 94 09:34:02 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: TZ woes - status update

OK; I worked on this last night, and here's what's happened so far.

I got the zoneinfo files from the BSD source distribution and added
them to djgpp (~300K) so that tzset will work properly.  You can now
use any POSIX-defined TZ setting.

I copied gettimeofday.c from djgpp V2.0, as V2.0 doesn't use go32's
routines at all so will be independent of borland issues.

I added correction logic so that gettimeofday returns GMT properly
based on TZ and the pc's local time.  Since everything else uses this
call, this took care of most bugs.

I copied V2.0's stat_assist.c so that stat won't use borland's
routines any more.

I discovered, after getting everything working, that mktime() is
returning local instead of GMT, and since everything depends on that,
I have to go fix everything again :-( I was testing ftime() when I
found this.

DJ


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019