Subject: Re: kern/2165: TIMEZONE and DST options in kernel config files are obsolete
To: None <netbsd-bugs@NetBSD.ORG>
From: None <is@Beverly.Rhein.DE>
List: netbsd-bugs
Date: 03/11/1996 23:52:52
Iain Hibbert (plunky@skate.demon.co.uk) wrote:
: >Synopsis:       TIMEZONE and DST options are obsolete, yet still needed

: the sparc kernel config files list the DST and TIMEZONE options as obsolete,
: and I have determined that they really are - yet they are needed to compile
: a kernel, and most of the other ports do not have them labelled as obsolete.

: I have a patch for src/sys/conf/param.c, which just initialises the timezone
: structure with zeros in case anybody looks there for the time before it gets
: set.  All of the TIMEZONE and DST options can now be removed from the
: src/sys/arch/*/conf/* files, should I send a patch for this too?

definitely not. I even object to your normal patch. I'd propose to use

#ifndef TIMEZONE
#define TIMEZONE 0
#endif
#ifndef DST
#define DST 0
#endif

in param.c instead, for the ports where the battery backed clock runs at
UTC always.

The reason is, that at least on the i386 (if I understand right), these
parameters are used to determine the offset the battery backed clock has
wrt. UTC (and somebody suggested to me to do the same to the Amiga port)
for the benefit for dual-OS machines where the native OS demands that
the battery backed clock runs at localtime.

Regards,
	 Ignatios Souvatzis