diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-03-26 17:04:53 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-03-26 17:04:53 +0000 |
commit | 1002abb98a115692ac75dcb640b7a5eeb54aa080 (patch) | |
tree | 9d5a99a0c433e8ec7c8371188905e15344f1ec78 /cpukit/libcsupport/src/__gettod.c | |
parent | 2007-03-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-1002abb98a115692ac75dcb640b7a5eeb54aa080.tar.bz2 |
2007-03-26 Joel Sherrill <joel@OARcorp.com>
* libcsupport/src/__gettod.c: Replace incorrect comment about timezone
support and remove deadcode. Replace with comment explaining that
behavior is compatible with GNU/Linux per Eric Norum.
Diffstat (limited to 'cpukit/libcsupport/src/__gettod.c')
-rw-r--r-- | cpukit/libcsupport/src/__gettod.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/cpukit/libcsupport/src/__gettod.c b/cpukit/libcsupport/src/__gettod.c index 918c2d3109..445ff87e82 100644 --- a/cpukit/libcsupport/src/__gettod.c +++ b/cpukit/libcsupport/src/__gettod.c @@ -73,18 +73,11 @@ int gettimeofday( tp->tv_usec = microseconds * _TOD_Microseconds_per_tick; /* - * newlib does not have timezone and daylight savings time - * yet. When it does this needs to be fixed. + * Timezone information ignored by the OS proper. Per email + * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X + * do it. This puts us in good company. */ -#if 0 - if ( tzp ) { - tzp->tz_minuteswest = 0; /* at UTC */ - tzp->tz_dsttime = 0; /* no daylight savings */ - tzp->minuteswest = timezone / 60; /* from seconds to minutes */ - tzp->dsttime = daylight; - } -#endif return 0; } |