comparison ChangeLog @ 279:49b452b667a6 noffle

[svn] * src/util.c: localTimeDiff() cached its value and recalculated it every hour of clock time, regardless of the time the calculated was based on. This is potentially dangerous at daylight saving changes. So instead use the cached last result only when the new request is to be based on a time in the same hour as the cached result. * src/util.c: Replace the alternate Utl_mktimeGMT() implementation used when timegm() is not available. The previous version, as suggested by the glibc timegm() man page, used setenv() and unsetenv() for changing the environment. These aren't POSIX function, and the POSIX putenv() (a) is tricky to manage if the same var is being constantly update and memory isn't to leak, and (b) provides no way to remove an environment entry. So change to an implementation Wget uses. This should compile on not glibc systems - the previous version failed to build on Solaris.
author bears
date Sun, 17 Nov 2002 15:18:19 +0000
parents 1fdde6512033
children 9c54bf672ca1
comparison
equal deleted inserted replaced
278:a0497ffac49b 279:49b452b667a6
1 Sun Nov 17 2002 Jim Hague <jim.hague@acm.org>
2
3 * src/util.c: localTimeDiff() cached its value and recalculated it every
4 hour of clock time, regardless of the time the calculated was based on.
5 This is potentially dangerous at daylight saving changes. So instead
6 use the cached last result only when the new request is to be based on
7 a time in the same hour as the cached result.
8 * src/util.c: Replace the alternate Utl_mktimeGMT() implementation used when
9 timegm() is not available. The previous version, as suggested by the
10 glibc timegm() man page, used setenv() and unsetenv() for changing the
11 environment. These aren't POSIX function, and the POSIX putenv()
12 (a) is tricky to manage if the same var is being constantly update and
13 memory isn't to leak, and (b) provides no way to remove an environment
14 entry. So change to an implementation Wget uses. This should compile on
15 not glibc systems - the previous version failed to build on Solaris.
16
1 Sun Nov 10 2002 Jim Hague <jim.hague@acm.org> 17 Sun Nov 10 2002 Jim Hague <jim.hague@acm.org>
2 18
3 * src/client.c,src/fetch.c,src/lock.c.src/protocol.c,src/util.h,src/util.c: 19 * src/client.c,src/fetch.c,src/lock.c.src/protocol.c,src/util.h,src/util.c:
4 Define our own SignalHandler type rather than use the rather 20 Define our own SignalHandler type rather than use the rather
5 Linux-specific (and potentially glibc version specific) sig_t. 21 Linux-specific (and potentially glibc version specific) sig_t.