SunOS and timelocal, timegm, tzsetwall

Jonathan Leffler jonathan.leffler at gmail.com
Fri Jan 11 06:13:09 UTC 2008


In Makefile (for tzcode2007k), there are the comments:

# Sun has provided "tzsetwall", "timelocal", and "timegm" in SunOS 4.0.
# These functions may well disappear in future releases of the time
# conversion package.

For Solaris 8 (SunOS 5.8) and Solaris 10 (SunOS 5.10), neither the standard
C library nor any other shared library in /lib or /usr/lib defines or
references tzsetwall, timelocal or timegm -- the functions no longer exist
in Solaris.  I was checking on SPARC rather than Intel, but I would not
expect that to matter in practice.

You can, however, find references for these functions for Solaris 2.5 (aka
SunOS 5.5) and Solaris 2.6 (SunOS 5.6) if you Google "site:sun.comtzsetwall" - (
2.5: http://docs.sun.com/app/docs/doc/802-1930-03/6i5u95utq?a=view; 2.6:
http://docs.sun.com/app/docs/doc/802-5747-03/6i9g1bha0?l=ko&a=view).
Interestingly, there is a Solaris 8 manual page (
http://docs.sun.com/app/docs/doc/806-0627/6j9vhfn9n?l=ko&a=view) that
mentions tzsetwall (but not timegm or timelocal), but I still can't find the
function in any of the shared libraries on a representative Solaris 8
machine.  There is a 'Solaris 8 Transition Guide' at
http://docs.sun.com/app/docs/doc/805-6331/6j5vgg6bv?a=view which mentions
all three - describing their replacements.

-- 
Jonathan Leffler <jonathan.leffler at gmail.com>  #include <disclaimer.h>
Guardian of DBD::Informix - v2007.0914 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm.icann.org/pipermail/tz/attachments/20080110/6987916a/attachment-0001.html 


More information about the tz mailing list