Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Aug 2018 15:24:42 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd@pdx.rh.CN85.dnsmgr.net>
To:        Conrad Meyer <cem@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r337334 - head/lib/libc/sys
Message-ID:  <201808042224.w74MOgLi095274@pdx.rh.CN85.dnsmgr.net>
In-Reply-To: <201808042208.w74M8OmD057603@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Author: cem
> Date: Sat Aug  4 22:08:24 2018
> New Revision: 337334
> URL: https://svnweb.freebsd.org/changeset/base/337334
> 
> Log:
>   settimeofday(2): Remove stale note about timezone
>   
>   Contrary to the removed comment, the kernel does appear to use the timezone
>   argument of settimeofday.  The comment dates to the BSD4.4 import; I assume it
>   is just stale.

In what way is the kernel using TZ?   It shouldn't be.
Or is it using the TZ to adjust the passed in time to UTC/GMT,
which I would of thought is done before calling settimeofday.

> Modified:
>   head/lib/libc/sys/gettimeofday.2
> 
> Modified: head/lib/libc/sys/gettimeofday.2
> ==============================================================================
> --- head/lib/libc/sys/gettimeofday.2	Sat Aug  4 21:57:17 2018	(r337333)
> +++ head/lib/libc/sys/gettimeofday.2	Sat Aug  4 22:08:24 2018	(r337334)
> @@ -28,7 +28,7 @@
>  .\"     @(#)gettimeofday.2	8.2 (Berkeley) 5/26/95
>  .\" $FreeBSD$
>  .\"
> -.Dd December 27, 2015
> +.Dd August 4, 2018
>  .Dt GETTIMEOFDAY 2
>  .Os
>  .Sh NAME
> @@ -44,11 +44,6 @@
>  .Ft int
>  .Fn settimeofday "const struct timeval *tp" "const struct timezone *tzp"
>  .Sh DESCRIPTION
> -.Bf -symbolic
> -Note: timezone is no longer used; this information is kept outside
> -the kernel.
> -.Ef
> -.Pp
>  The system's notion of the current Greenwich time and the current time
>  zone is obtained with the
>  .Fn gettimeofday
> 
> 

-- 
Rod Grimes                                                 rgrimes@freebsd.org



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