Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2001 21:13:07 -0800 (PST)
From:      crandall@matchlogic.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/24590: timezone function not compatible witn Single Unix Spec v2
Message-ID:  <200101240513.f0O5D7N49021@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         24590
>Category:       misc
>Synopsis:       timezone function not compatible witn Single Unix Spec v2
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 23 21:20:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Charles F. Randall
>Release:        FreeBSD 4.1R
>Organization:
>Environment:
FreeBSD ds9.is.matchlogic.com 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Fri Jul 28 14:30:31 GMT 2000     jkh@ref4.freebsd.org:/usr/src/sys/compile/GENERIC  i386
>Description:
/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 AT&T 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 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
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101240513.f0O5D7N49021>