timezone in time.h

Stefan Farfeleder stefan at fafoe.narf.at
Fri Feb 13 09:40:52 PST 2004


On Mon, Feb 09, 2004 at 11:41:15PM +0300, Samy Al Bahra wrote:
> http://www.opengroup.org/onlinepubs/007904975/basedefs/time.h.html
> 
> timezone is defined as a long, a lot of time keeping applications (in
> this part of the world at the least) depend on this variable maintaining
> the value difference between UTC and the local standard time.
> 
> Is there any chance we could move our timezone function to something
> else? and stick to a timezone variable? or provide an alternative name
> but similar functionality to this? Anyone working on this already?

There's only a single reference to timezone() in the whole source tree,
src/contrib/sendmail/src/arpadate.c, and the code in that file is
#ifdef'ed out.  Just for fun I built and installed a world without
timezone(), as expected it succeeded.  NetBSD already warns that
timezone() will eventually disappear in its man page, maybe we should
follow them and remove timezone() in 6-current.

Cheers,
Stefan


More information about the freebsd-standards mailing list