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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user