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.
This commit is contained in:
Joel Sherrill
2007-03-26 17:04:53 +00:00
parent 2661376d6f
commit 1002abb98a
2 changed files with 9 additions and 10 deletions

View File

@@ -1,3 +1,9 @@
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.
2007-03-26 Ralf Corsépius <ralf.corsepius@rtems.org> 2007-03-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp_defs.h, libnetworking/net/if_ppp.h: * libnetworking/net/ppp_defs.h, libnetworking/net/if_ppp.h:

View File

@@ -73,18 +73,11 @@ int gettimeofday(
tp->tv_usec = microseconds * _TOD_Microseconds_per_tick; tp->tv_usec = microseconds * _TOD_Microseconds_per_tick;
/* /*
* newlib does not have timezone and daylight savings time * Timezone information ignored by the OS proper. Per email
* yet. When it does this needs to be fixed. * 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; return 0;
} }