From 56d0b9b6db43b59fc497045ff19e5c2557f4c8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 22 Nov 2004 17:33:43 +0000 Subject: [PATCH] added _get_tzfilename git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10179 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/os/time.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/kernel/libroot/os/time.c b/src/kernel/libroot/os/time.c index eb2d4b79ba..5f255cde75 100644 --- a/src/kernel/libroot/os/time.c +++ b/src/kernel/libroot/os/time.c @@ -18,7 +18,9 @@ static struct real_time_data sRealTimeDefaults = { 0, 100000, 0, - 0 + false, + "", + true }; static struct real_time_data *sRealTimeData; @@ -87,3 +89,13 @@ set_alarm(bigtime_t when, uint32 flags) // ToDo: set_alarm() return B_ERROR; } + + +void +_get_tzfilename(char* filename, size_t length) +{ + if (filename == NULL) + return; + + strlcpy(filename, sRealTimeData->tzfilename, length); +}