Subject: kernel timezone variable eliminated
To: None <current-users@NetBSD.ORG>
From: Perry E. Metzger <perry@piermont.com>
List: current-users
Date: 01/14/1997 20:42:54
For some years now, kernel timezone information has been obsolete, and
system timezone has been managed in userland. Some residual handling
remained in the kernel, which has now been purged.

The obsolete TIMEZONE and DST kernel config options have been
eliminated, along with the kernel struct timezone tz variable they
used to initialize. If you try to compile with TIMEZONE or DST set in
your config, an #error will warn you of your mistake.

There is now an RTC_OFFSET option on those ports that previously
supported having hardware real time clocks offset from GMT -- that is,
on i386, mac68k, pc532, arm32 and x68k. It operates exactly as
TIMEZONE operated on those ports -- that is, if you want to run your
clock 300 minutes west of GMT on port-i386, do a

  options RTC_OFFSET=300

This option sets a kernel rtc_offset variable.  A sysctl now exists to
show the value of this variable.

gettimeofday now always returns a zeroed struct timezone if you pass
it a pointer to a timezone -- settimeofday no longer sets a timezone
if you try, reflecting that the code is obsolete. There is no longer
any kernel tz variable at all.

sys/time.h has had the DST_* variables purged -- they were long
obsolete.

If you experience any problems as a result of these changes, please
let me know.

Perry