[Tinymux] Build problem - Visual Studio 2005 AMD64

Stephen Dennis brazilofmux at gmail.com
Thu May 12 17:54:32 EDT 2005


localtime() is mentioned four times in timeutil.cpp. You could set
four breakpoints and look at where it's coming from. That, or change
localtime() to private_localtime() and do the parameter checking in
there before passing it to the library localtime().

_MAX__TIME64_T is probably 2^63-1, but it would be OK to pick
something much smaller than that: 2^31-1.

TinyMUX only uses localtime() to obtain timezone and daylight savings
time information over a limited range. Outside that range, it does
some intelligent guessing. TinyMUX doesn't use localtime() or any
system function for its time conversions, so picking a restricted
range for time_t only blinds TinyMUX a bit with regard to the time
offsets between UTC and Local time. Perhaps, you don't really care
whether the system thinks it knows when daylight savings time will
start in the year 2040. Perhaps TinyMUX's guess is just as good as any
other.

Stephen.


More information about the Tinymux mailing list