lkml.org 
[lkml]   [1998]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel knowledge of localtime (user-level implememntation)
   So -- we make the VFS know about time-zone changes, surely that would
work? We don't even need this to be overly clever, we would just make
it a simple integer offset from UTC (kernel) time and have a userland
daemon re-sync. this when timezones shift (eg. daylight savings
time).

umm, this thread is going in circles. settimeofday(NULL, &tz) provides
the mechanism to do this. in fact, my original post was just a
question about where to stick the user-level bits. i have it in the
update daemon, for example, as it has minimal overhead (most likely
less than a regularly scheduled cron job) and you never need to call
settimeofday unless the timezone actually changes. given that update
runs every 10 seconds, you even get pretty good resolution on a
timezone switch.

so, who is responsible for the update daemon now? i sent an email a
while back to ewt@redhat.com, but that seems to have fallen on deaf
ears.

-a
asun@u.washington.edu


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.045 / U:8.016 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site