added get_rtc_info, needed in the kernel for services which use local timestamps such as the dos filesystem

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10463 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2004-12-15 09:23:50 +00:00
parent e93e8b9a66
commit 5622a2e2c5
2 changed files with 24 additions and 0 deletions
+15
View File
@@ -144,6 +144,20 @@ real_time_clock_usecs(void)
}
status_t
get_rtc_info(rtc_info *info)
{
if (info == NULL)
return B_BAD_VALUE;
info->time = real_time_clock();
info->is_gmt = sIsGMT;
info->tz_minuteswest = sTimezoneOffset;
info->tz_dsttime = sDaylightSavingTime;
return B_OK;
}
// #pragma mark -
// public userland API
@@ -219,3 +233,4 @@ _user_get_tzfilename(char *filename, size_t length, bool *_isGMT)
return B_OK;
}