This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC v4 07/24] time: Deprecate struct timezone members


On Mon, 12 Aug 2019, Zack Weinberg wrote:

>  - Our implementation of gettimeofday should always pass NULL for
> struct timezone to the kernel, and write zeroes to any struct timezone
> argument that is supplied.  (This will transitively apply to ftime.)

Given that the kernel timezone is in fact meaningful (for the kernel's 
interpretation of data shared with other OSes, such as the RTC clock and 
some filesystem timestamps, that is kept in local time - just not for the 
purpose for which the timezone settings in gettimeofday / settimeofday 
were originally intended), I think gettimeofday should continue to read 
that information from the kernel when the kernel provides it (i.e., the 
uses of the kernel timezone mean that other syscalls do *not* supersede 
the gettimeofday syscall for this purpose and so access to that 
information from that syscall should continue to be provided).

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]