More consolidation of timezone code:
* dropped DaylightSavingTime from real_time_clock code in kernel, it was never really being used for what it meant (and just being referred to by gettimeofday(), which put a different meaning to it * adjusted the syscalls get_timezone() & set_timezone() as well as their callers accordingly * got rid of get_rtc_info() and rtc_info struct in kernel, as it was only being referred to by the FAT add-on and that one (like gettimeofday()) put a different meaning to tz_minuteswest. Added a comment to FAT's util.c showing a possible solution, should the hardcoded GMT timezone pose a problem. * fixed declaration of gettimeofday() to match POSIX base specs, issue 7 * changed implementation of gettimeofday() to not bother trying to fill struct timezone - it was using wrong values before, anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37888 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#ifndef _SYS_TIME_H
|
||||
#define _SYS_TIME_H
|
||||
/*
|
||||
/*
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
|
||||
@@ -40,7 +40,7 @@ extern "C" {
|
||||
|
||||
extern int getitimer(int which, struct itimerval *value);
|
||||
extern int setitimer(int which, const struct itimerval *value, struct itimerval *oldValue);
|
||||
extern int gettimeofday(struct timeval *tv, struct timezone *tz);
|
||||
extern int gettimeofday(struct timeval *tv, void *tz);
|
||||
|
||||
extern int utimes(const char *name, const struct timeval times[2]);
|
||||
/* legacy */
|
||||
|
||||
Reference in New Issue
Block a user