timezone var vs timezone() function

1999-12-12 Thread Charles Randall

On my FreeBSD 3.3R system, /usr/include/time.h includes a prototype for the
timezone() function. The timezone(3) manual page indicates that this
function is for compatibility purposes only and notes that the timezone()
function first appeared in ATT Unix V7.

Version 2 of the Single Unix Specification (www.opengroup.org) states that
time.h defines a global variable named timezone which indicates the
difference in seconds between the local timezone and UTC. It also notes that
this is, "Derived from Issue 1 of the SVID." I don't know what that means.

I realize that I can work around this in an application a number of ways.
For example, use FreeBSD's tm_gmtoff member of struct tm.

However, is it a long-term goal for FreeBSD to conform to the Single Unix
Specification?

Charles



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: timezone var vs timezone() function

1999-12-12 Thread Wilko Bulte

On Sun, Dec 12, 1999 at 12:40:06PM -0700, Charles Randall wrote:
 On my FreeBSD 3.3R system, /usr/include/time.h includes a prototype for the
 timezone() function. The timezone(3) manual page indicates that this
 function is for compatibility purposes only and notes that the timezone()
 function first appeared in ATT Unix V7.
 
 Version 2 of the Single Unix Specification (www.opengroup.org) states that
 time.h defines a global variable named timezone which indicates the
 difference in seconds between the local timezone and UTC. It also notes that
 this is, "Derived from Issue 1 of the SVID." I don't know what that means.

SVID == System V Interface Definition.

-- 
Wilko Bulte Arnhem, The Netherlands   - The FreeBSD Project 
WWW : http://www.tcja.nl  http://www.freebsd.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



RE: timezone var vs timezone() function

1999-12-12 Thread Charles Randall

From: Wilko Bulte [mailto:[EMAIL PROTECTED]]
Charles Randall wrote:
 ... It also notes that
 this is, "Derived from Issue 1 of the SVID."

SVID == System V Interface Definition.

Interesting, my Solaris 2.6 box defines timezone as the global variable (in
accordance with the Single Unix Spec). See the tzset() manpage for their
description.

Charles


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message