This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A patch for mktime.c and tz*.c.


   From: hjl@lucon.org (H.J. Lu)
   Date: Sun, 8 Nov 1998 09:07:36 -0800 (PST)

   My original idea was whenever glibc computes a difference between
   SDT and DST for the time asked, it saves it in a new variable
   __daylight_offset.

Something like this should work, but you'll have to add a new lock for
mktime; otherwise the code won't survive in the presence of multiple
threads.  It might be cleaner to add a new internal glibc function
that, given a time_t value, tells you the DST offset for that value.

(If the current code works I'd just leave it alone.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]