* the Time preflet now writes timezone info required by the POSIX layer into
a specific file (/boot/common/settings/libroot_timezone_info) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37934 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2010, Oliver Tappe, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _LOCALTIME_H
|
||||
#define _LOCALTIME_H
|
||||
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
|
||||
static const char* skPosixTimeZoneInfoFile = "libroot_timezone_info";
|
||||
static const int skTimeZoneInfoNameMax = 32;
|
||||
|
||||
// holds persistent info set by Time preflet
|
||||
struct time_zone_info {
|
||||
char short_std_name[skTimeZoneInfoNameMax];
|
||||
char short_dst_name[skTimeZoneInfoNameMax];
|
||||
uint32 offset_from_gmt;
|
||||
bool uses_daylight_saving;
|
||||
};
|
||||
|
||||
|
||||
} // namespace BPrivate
|
||||
|
||||
|
||||
#endif // _LOCALTIME_H
|
||||
Reference in New Issue
Block a user